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

How to split a polygon with a line? #1135

Closed
valvarezf opened this issue Aug 12, 2024 · 1 comment
Closed

How to split a polygon with a line? #1135

valvarezf opened this issue Aug 12, 2024 · 1 comment

Comments

@valvarezf
Copy link

valvarezf commented Aug 12, 2024

I tried several methods:

.- OverlayNG::overlay DIFFERENCE
.- intersection and then add intersection and polygon to a polygonizer
.- symdifference / difference
.- intersection and then difference / symdifference
.- intersection and then EnhancedPrecisionOp::difference / EnhancedPrecisionOp::symdifference
.- intersection and then add intersection and polygon to a geomcollection and then use polygonizer

Can someone help me?

@dbaston
Copy link
Member

dbaston commented Aug 12, 2024

This functionality isn't currently provided directly by GEOS. A common method is to union the splitting line with the boundary of the polygon, then polygonize the result. #1101 contains links to a few implementations of this.

@dbaston dbaston closed this as completed Aug 12, 2024
@dr-jts dr-jts reopened this Aug 13, 2024
@dr-jts dr-jts closed this as not planned Won't fix, can't repro, duplicate, stale Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants