Select to view content in your preferred language

Find Intersections between a single polygon and a feature class?

740
3
Jump to solution
08-28-2013 07:04 AM
JohnStephens
Regular Contributor
I am looking for a non-geoprocessor solution.

So, I have searched the forums and Google and have not found what I am looking for.  I have a single polygon (which is a dissolved buffer from a different feature class) and a separate feature class that I want to find the intersections between and then delete those features.  It appears to me that a SpatialQuery only operates on one feature class.

I am guessing this could be done with a GeometryBag, but then I believe it would also find the intersections within the feature class, which I do not want to delete.

Any help would be appreciated.
0 Kudos
1 Solution

Accepted Solutions
AlexanderGray
Honored Contributor
I am not clear on what you want to do.  A spatial query only works on one feature class but as far as I understand you only want to delete the features from one feature class.  If you create your polygon first by unioning all the polygons from your buffer feature class, then use the polygon as the geometry in the spatial query, you should get all the features from the seperate feature class that intersect the one big polygon.  You then can delete all these features one by one by going through the cursor.

View solution in original post

0 Kudos
3 Replies
AlexanderGray
Honored Contributor
I am not clear on what you want to do.  A spatial query only works on one feature class but as far as I understand you only want to delete the features from one feature class.  If you create your polygon first by unioning all the polygons from your buffer feature class, then use the polygon as the geometry in the spatial query, you should get all the features from the seperate feature class that intersect the one big polygon.  You then can delete all these features one by one by going through the cursor.
0 Kudos
JohnStephens
Regular Contributor
If you create your polygon first by unioning all the polygons from your buffer feature class, then use the polygon as the geometry in the spatial query, you should get all the features from the seperate feature class that intersect the one big polygon.  You then can delete all these features one by one by going through the cursor.


This worked.  I kind of feel dumb what I was trying to do now.  Thank you.
0 Kudos
AlexanderGray
Honored Contributor
no worries, some times you just need to explain your problem or have someone repeat it back to you for the solution to become apparent.  Many times I have opened a new thread on this forum, typed in my question in great detail, re-read it, see the solution and not post it to the forum.
0 Kudos