Skip to main content
Solved

Check if two polygons are touching?

  • September 15, 2020
  • 2 replies
  • 218 views

bjudes
Enthusiast
Forum|alt.badge.img+10

Hi,

 

I have a single file geodatabase, within this I have a number of polygons that are broken down into various classes. For example, grass, buildings and forest etc. I want to be able to check if a grass parcel touches another grass. Would this be possible to check?

 

Thanks

B

Best answer by ebygomm

You should be able to use a spatial relator to check this, send the data to both Requestor and Supplier, use a unique ID as Attributes that must differ so you are not checking features against themselves and then use the class as the GroupBy. Touching polygons will have a related candidate count of >0

 

You could also use a Dissolver, grouping by class and building a list of dissolved polygons. Only polygons with the same class that are touching each other will be dissolved and thus have a list of the polygons that were touching.

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • Best Answer
  • September 15, 2020

You should be able to use a spatial relator to check this, send the data to both Requestor and Supplier, use a unique ID as Attributes that must differ so you are not checking features against themselves and then use the class as the GroupBy. Touching polygons will have a related candidate count of >0

 

You could also use a Dissolver, grouping by class and building a list of dissolved polygons. Only polygons with the same class that are touching each other will be dissolved and thus have a list of the polygons that were touching.


bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • September 15, 2020
ebygomm wrote:

You should be able to use a spatial relator to check this, send the data to both Requestor and Supplier, use a unique ID as Attributes that must differ so you are not checking features against themselves and then use the class as the GroupBy. Touching polygons will have a related candidate count of >0

 

You could also use a Dissolver, grouping by class and building a list of dissolved polygons. Only polygons with the same class that are touching each other will be dissolved and thus have a list of the polygons that were touching.

Thanks @ebygomm​, that worked great.

B


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