Question

List of adjacent polygons


Hi, I'm trying to create an adjacency 'matrix' in FME to identify all those polygons in one file that touch polygons in another file (it's actually the same set of polygons). I'm using Spatial Relator but this only seems to give one result for each base polygon. Can anyone advise how to get for example 3 output records if the polygon touches 3 other polygons? Sorry if this is easy, I'm a newbie!

 

 

Thanks

 

Graham

2 replies

Userlevel 4
Hi Graham,

 

 

have you looked at the list or relationships created by the SpatialRelator? It is called "_relationships" by default and contains all the CANDIDATE features that matched the BASE feature.

 

 

You can use a ListExploder to extract each item into a separate feature.

 

 

David
Hi David,

 

 

Perfect!! That does exactly what I wanted. Thanks very much David.

 

 

Graham

Reply