Skip to main content
Solved

Check if two polygons are touching?

  • September 15, 2020
  • 2 replies
  • 248 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?
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.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+43
  • 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