Skip to main content
Question

Calculating the differences between two shape files

  • December 20, 2018
  • 3 replies
  • 21 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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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
  • Author
  • 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.

 

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