Skip to content

difference giving "Unable to complete output ring starting at ..." error, but different behaviour to #7 #23

@smallsaucepan

Description

@smallsaucepan

Note, aware of issue #5 which reports the same error message. Seeing slightly different behaviour though, in that calling setPrecision causes the error, and then solves it. Meaning:

  • no setPrecision: works
  • 1e-12: fails
  • 1e-16: works

Test polys are shown below and geojson here. The blue line is a polygon - imagine a rubber band stretched around the red pin. The green pin is the output ring start from the error message, and the red pin the last matching segment found. At the time of the error the algo is stepping counter-clockwise around the yellow poly.

Image

Given a lot of the "Unable to complete output ring ..." errors seem to happen with close together points, is it possible segments with duplicate (or near duplicate) points are being mixed up when producing output rings in geom-out?

Is this theoretically possible to fix? Happy to try if so. Appreciate any insights you can provide @luizbarboza 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions