Solved

Spatial relator issue line vs points

  • 23 January 2023
  • 1 reply
  • 2 views

Userlevel 1
Badge +11

Hi

I tried to join two linear datatset using this approach

I created (snipper) center point from one lines dataset and then I used the spatial relator to join the info to the 2 lines dataset but due to the mismatch of the coordsys of two datasets(I suppose) the center point doesn't touch the line (see picture)

imageI suppose that this is related to the tolerance during reprojection do you have same experience ?

 

thx

 

PS I solved creating a buffer for the center points

 

Francesco

icon

Best answer by nielsgerrits 23 January 2023, 11:45

View original

1 reply

Userlevel 6
Badge +33

Getting points exactly on lines is hard to do because of floating point precision coordinates. (Coordinates in FME are not snapped to a grid.)

 

As an alternative for the buffering and spatial relator method you can use a PointOnLineOverlayer and use a Point Tolerance.

 

If you want to find out what a usable tolerance is, you can get a NeighborFinder to find the distances, but I think these are very small.

Reply