Skip to content

Polygon Polygon Intersection #1270

Closed Answered by jarmak-nv
kurt-rhee asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kurt-rhee - thanks for checking out cuSpatial!

We can do the binary intersects operation between polygons, but if you're looking for the output geometry intersection between polygons then right now that's not supported - you're correct.

If your polygons don't have holes/you don't expect multipolygons you may be able to piece something together using the LineString Intersection API, following something like:

  • Extract the boundaries from your polygons and convert them to into LineStrings
  • Perform intersection operation
  • Combine the outputted LineStrings back into a polygon

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kurt-rhee
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants