Skip to content

Question on repairing the vertex order #38

Description

@balazsdukai

My input is POLYGON ((85002.60900146485 447422.1309907227, 84999.41800146484 447425.8499907227, 84992.16200146485 447431.2489907226, 84991.65300146485 447431.6269907227, 84995.05100146485 447429.0989907227, 84989.12400146485 447433.5089907227, 84990.52000146484 447435.2609907227, 84987.82000146485 447437.3439907227, 84985.77100146485 447434.2329907226, 84988.13000146484 447431.9589907227, 84988.37700146485 447432.2149907227, 84989.20900146486 447429.8119907227, 84987.37900146485 447428.4259907227, 84997.80600146485 447418.3269907227, 85002.60900146485 447422.1309907227))

The problem here is that the order of some of the vertices are incorrect, which creates sort of a spike that is collinear with an edge.

I tried repairing the polygon with and without --minarea 1, and I get a multipolygon, where the "main" polygon, which I expect as outcome, doesn't have all the input vertices anymore.

What I expect is to get this result, including all vertices and their position: POLYGON ((85002.60900146485 447422.1309907227, 84999.41800146484 447425.8499907227, 84995.05100146485 447429.0989907227, 84992.16200146485 447431.2489907226, 84991.65300146485 447431.6269907227, 84989.12400146485 447433.5089907227, 84990.52000146484 447435.2609907227, 84987.82000146485 447437.3439907227, 84985.77100146485 447434.2329907226, 84988.13000146484 447431.9589907227, 84988.37700146485 447432.2149907227, 84989.20900146486 447429.8119907227, 84987.37900146485 447428.4259907227, 84997.80600146485 447418.3269907227, 85002.60900146485 447422.1309907227))

Is this possible?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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