Skip to main content
Question

Spatial relations between points and lines


Hi,

 

 

I have set with unique points and non unique lines. All endpoints of all lines are in the point set. When I use SpatialRelator (lines are requestors and points are suppliers) with TOUCHES test, I'm getting more related candidates than 2. How is this possible?

2 replies

david_r
Celebrity
  • September 7, 2015
Hi

 

 

Could it be that some lines are intersecting start/endpoints of other lines?

 

 

You may want to convert your lines to start/endpoints (CoordinateExtractor with 0 and -1 indexes, then VertexCreator) first, if you need to avoid this scenario. You might also want to consider using the NeighborFinder if you need to introduce a small tolerance.

 

 

David

  • Author
  • September 8, 2015
David,

 

 

Problem was (of course) on my side. Not so unique points even after thousands checks...

 

 

Thanks anyway!

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