Skip to content

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

@xoolive

Description

@xoolive

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions