Skip to content

geoProject converts hole to MultiPolygon #201

@ondras

Description

@ondras

As shown here: https://observablehq.com/@ondras/d3-geoproject-problem (resulting MultiPolygon has two distinct exterior-only polygons)

The simple GeoJSON feature is a triangle-shaped polygon with a smaller triangle-shaped hole. The problem is caused by a vertex that is shared between the hole and the outer boundary.

For comparison, the feature_good has the hole's problematic vertex shifted a tiny bit away from the exterior (towards the center) - and the geoProject call correctly preserves the hole.

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