Skip to main content
Question

Calculating the differences between two shape files

  • December 20, 2018
  • 3 replies
  • 11 views

Forum|alt.badge.img

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

3 replies

david_r
Celebrity
  • December 20, 2018

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.

 


Forum|alt.badge.img
david_r wrote:

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.


david_r
Celebrity
  • December 20, 2018

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

 


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