Question

Spatial relations between points and lines

  • 7 September 2015
  • 2 replies
  • 1 view

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

Userlevel 4
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
David,

 

 

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

 

 

Thanks anyway!

Reply