Skip to content

How to intersect collections of lines #1118

Answered by dr-jts
opeongo asked this question in Q&A
Discussion options

You must be logged in to vote

For a single collection of lines you can use unary union. For two sets of lines use binary union.

One limitation is that this does not preserve the parentage of the input lines. If that is required you will need to use a noder such as MCIndexNoder. An example is here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dr-jts
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