Trying to automate clip for multiple polygons based on unique field ID?

2493
1
12-04-2015 12:44 PM
DylanMackowiak
New Contributor

I have two feature classes, one that contains all counties for 5 states and the other contains 90 polygons I need clipped only to their pertaining county boundary, but they overlap/ cross the county boundary (See image below). Both feature classes have a field with a unique 5 digit ID for each county as well. Being that I am relatively new to Python, is there a way I can use a loop or searchcursor to clip each of the 90 polygons to their respective county boundary using their 5 digit ID?

*The red rose colored polygons show the overlapping polygons I need to clip and the tan colored polygons show what I need the final product to look like.

Example.PNG

0 Kudos
1 Reply
DarrenWiens2
MVP Honored Contributor

There is an intersect method on the arcpy.Polygon() object that you can use for polygon-level intersects between individual polygon features, which you can get to using a cursor.