RitwikGupta / xView2-Vulcan-Model

MIT License
6 stars 2 forks source link

Shapes output contains invalid polygons #43

Closed pounde closed 3 years ago

pounde commented 3 years ago

Describe the bug Some polygon geometries are invalid

Expected behavior Output should include only valid polygons

Current behavior Output includes some invalid polygons

Possible solution Fix invalid polygons before they are used (for AGOL or shapefile creation).

Steps to reproduce Steps to reproduce the behavior:

  1. Run test_features and test with shapely.is_valid

Screenshots None

Error Messages Output of test dataset using shapely.validation.explain_validity: Ring Self-intersection[-94.4956255988127 37.074073979428] Ring Self-intersection[-94.4959795988127 37.073839979428] Ring Self-intersection[-94.4956495988127 37.073845979428] Ring Self-intersection[-94.4994175988127 37.073455979428]

Environment (please complete the following information):