Skip to main content
Solved

Identifying intersected lines from different datasets

  • January 30, 2019
  • 4 replies
  • 222 views

jugoslaviaa
Enthusiast
Forum|alt.badge.img+6

I have two datasets . Both of them consist of linestring. One data set is street centerline and the second one is the left and righ side of the street. I would like to find the lines in second dataset where they intersect with lines in the first dataset.

It is pretty straight forward. I can do it in QGIS with help of spatial query. However, I am not able to identfy those lines correctly. Both Spatial Relator and Spatial Filter find some of the disjoint lines as intersected. I do not know what I am doing wrongly.

I would be very happy, if someone could help me. Thanks in advance.

Here is the snapshot how my two datasets look like. I would like to find the intersection as marked in the pic.

This is how the workbench and spatial filter parameter lok

 

 

 

Here one can see the lines that are detected as intersected however they are not even touching each other.

 

Those lines are however identfy correctly as intersected.

Best answer by daveatsafe

Hi @jugoslaviaa,

In the SpatialFilter, please change the Support Mode to Support All Predicates, then change the Spatial Predicates to Test to 'Filter Crosses Candidate'. If you have any aggregates in your source geometry, you will need to use a Deaggregator before the SpatialFilter. This should find all the crossing lines.

View original
Did this help you find an answer to your question?

4 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • January 30, 2019

Hi @jugoslaviaa

Did you try to use the transformer Intersector?

 

Thanks,

 

Danilo

 


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • January 30, 2019
danilo_fme wrote:

Hi @jugoslaviaa

Did you try to use the transformer Intersector?

 

Thanks,

 

Danilo

 

Interesting link

https://knowledge.safe.com/questions/2351/line-intersect.html


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • January 30, 2019

Hi @jugoslaviaa,

In the SpatialFilter, please change the Support Mode to Support All Predicates, then change the Spatial Predicates to Test to 'Filter Crosses Candidate'. If you have any aggregates in your source geometry, you will need to use a Deaggregator before the SpatialFilter. This should find all the crossing lines.


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • January 31, 2019
daveatsafe wrote:

Hi @jugoslaviaa,

In the SpatialFilter, please change the Support Mode to Support All Predicates, then change the Spatial Predicates to Test to 'Filter Crosses Candidate'. If you have any aggregates in your source geometry, you will need to use a Deaggregator before the SpatialFilter. This should find all the crossing lines.

It worked! Thank you very much. I knew that I am doing something wrongly. I have both add the deaggretor and change the parameter in the filter. I kept both cross and intersection and the output is as I expected now.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings