Skip to main content

Hello,

 

 

 

I have two shape files. One file contains more than 1400 points and another is smaller and it has 300 points that are dislocation of some of those 1400 points. I would need to calculate the differences between those points that are from shape no1 and same points that are present in shape no2. I taught that it can be done by NeighborFinder but I am not sure how.

 

 

Any help and hints is more than welcome.

 

Thank you in advance,

 

MaliodPalube

Do you have a common ID between the two datasets? If yes, then use that ID as a Group By-clause for the NeighborFinder. This allows you to set a larger maximum distance without interference from the "other" points nearby.

 


Do you have a common ID between the two datasets? If yes, then use that ID as a Group By-clause for the NeighborFinder. This allows you to set a larger maximum distance without interference from the "other" points nearby.

 

There are no any IDs. Only attribute that I can have are X and Y from CoordinateExtractor.


The NeighborFinder works both with and without a common ID, although the maximum distance needs to be set carefully to avoid false positives if you don't have a common attribute to group by.

Start by reading the help text for the NeighborFinder, it has a lot of useful information.

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/neighborfinder.htm

There's also this article that's very helpful:

https://knowledge.safe.com/articles/28816/determining-nearest-neighbors.html

 


Reply