-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalize merged fill polygons #1173
Conversation
for (int i = 0; i < cs.size(); i++) { | ||
double x = cs.getX(i); | ||
double y = cs.getY(i); | ||
if ((notClose(x, min, tol) && notClose(x, max, tol)) && (notClose(y, min, tol) && notClose(y, max, tol))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this just checks that all vertices are on the fill edge... I think that covers all possible cases here, but might want something more robust like this:
planetiler/planetiler-core/src/main/java/com/onthegomap/planetiler/VectorTile.java
Line 854 in de4f99c
public boolean isFillOrEdge(boolean allowEdges) { |
Full logs: https://github.com/onthegomap/planetiler/actions/runs/13261265179 |
Working well, LGTM |
|
Fix #1170 by merging normalized fill polygons