d3-geo-projection icon indicating copy to clipboard operation
d3-geo-projection copied to clipboard

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

Open xoolive opened this issue 3 years ago • 0 comments

@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

xoolive avatar Jan 30 '22 18:01 xoolive