Skip to content

Add support for reconstructing interior rings #1

@underbluewaters

Description

@underbluewaters

Currently the process should (untested) include interior rings from input polygons in the output if they are entirely included in those polygons, but it ignores the issue of holes that are split among 2 or more subdivided polygons.

Screen Shot 2020-05-11 at 7 48 07 AM

For example, in this dataset above the lakes in this dataset would be absent from the output.

Implementation-wise this should be somewhat straightforward to add at the end of processing of each exterior ring. The algorithm tracks which input polygons segments were drawn from in the exterior ring's construction. Any segment with significant coordinates (not exclusively boundary edges) that are part of these polygons but not the exterior ring are parts of interior rings. Once these are gathered it's a matter of matching up direct overlaps and adding them to the output polygon. Unlike exterior rings there should be no special rules around connecting disjointed vertices.

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