Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim Action for self-intersecting polygons during Project Creation fails with no error message #4911

Closed
ramyaragupathy opened this issue Oct 25, 2021 · 0 comments · Fixed by #5076

Comments

@ramyaragupathy
Copy link
Member

Current Behaviour:

When a user creates a project area that's self intersecting, Trim Action results in Exception and error is logged in the backend.
Example error log:

TopologyException: Input geom 0 is invalid: Self-intersection at or near point -21.006146092804485 -20.134594635489307 at -21.006146092804485 -20.134594635489307 [2021-10-25 23:01:48,131] CRITICAL in actions: IntersectingTiles GET API - unhandled error: The operation 'GEOSIntersection_r' could not be performed. Likely cause is invalidity of the geometry <shapely.geometry.multipolygon.MultiPolygon object at 0x10736d5e0>
self-intersection

Expected Behaviour:

If the input polygon is self-intersecting, indicate the issue to the user when the Trim Action is initiated.

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

Successfully merging a pull request may close this issue.

3 participants