Skip to main content

Hi,

 

I was wondering what would be the best way to find the number of adjacent polygon of a single feature polygon in the same dataset such as shapefile for instance. I tried the SpatialRelator and connecting the same features in the supplier and requestor bu the results are not correct. Thanks.

Have you tried to use an AnchoredSnapper before the SpatialRelator? Make sure to use Segment Snapping.


Another option would be the NeighborFinder with a distance of 0. This will allow you to get a list of closest candidates (all touching (or overlapping) polygons. If you have all as candidate, be sure to substract 1 from the count as the polygon itself will also qualify.


Another option would be the NeighborFinder with a distance of 0. This will allow you to get a list of closest candidates (all touching (or overlapping) polygons. If you have all as candidate, be sure to substract 1 from the count as the polygon itself will also qualify.

Hi @erik_jan thanks, that is correct, I added a listElementCounter to get the numbers right. Polygons with no numbers are rejected, but that it no issue.

 

neighborfinder.jpg

Reply