Skip to content

--minarea doesn't remove zero area polygon #39

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))

I run prepair with --minarea 1 and one of the polygons in the output multipolygon still has a near-zero area.

Result from prepair: MULTIPOLYGON (((84999.4180014648 447425.849990723,84992.1620014649 447431.248990723,84991.857837151 447431.474873062,84989.1240014649 447433.508990723,84990.5200014648 447435.260990723,84987.8200014648 447437.343990723,84985.7710014648 447434.232990723,84988.1300014648 447431.958990723,84988.3770014648 447432.214990723,84989.2090014649 447429.811990723,84987.3790014649 447428.425990723,84997.8060014649 447418.326990723,85002.6090014649 447422.130990723,84999.4180014648 447425.849990723),(84995.0510014648 447429.098990723,84991.6530014648 447431.626990723,84991.857837151 447431.474873062,84995.0510014648 447429.098990723)))

where the second polygon (84995.0510014648 447429.098990723,84991.6530014648 447431.626990723,84991.857837151 447431.474873062,84995.0510014648 447429.098990723) has near-zero area.

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