Skip to content
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

geoStitch mislabels the union of two Polygons forming a hole on the date line as a MultiPolygon #216

Open
xoolive opened this issue Jan 30, 2022 · 0 comments

Comments

@xoolive
Copy link

xoolive commented Jan 30, 2022

@Fil and I identified an issue with d3.geoStitch.
Not sure how close it is related to #108.

The use case is based on two regular polygons forming a hole when they join on the date line. The coordinates of the result are correct, in the correct winding order, but the shape is incorrectly tagged as a MultiPolygon and the inner polygon being marked as an outer polygon covers the whole sphere.

A------B B-----C
|      | |     |
|   E--D |     |
|   |    |     |
|   F--G |     |
|      | |     |
K------J J-----H

Full details on https://observablehq.com/@fil/geostitch-bug-nzzo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant