Clipping polygons in a shapefile

289
1
02-23-2012 04:40 AM
JeffreyVu
New Contributor
I have posted this question in the Editing forum but I thought this would be done in Python.


I have several polygons in a shapefile with the Priority field. Is it possible that we can write Python code to clip the polygons based on this field?


Thanks in advance.
Jeffrey
Tags (2)
0 Kudos
1 Reply
MathewCoyle
Frequent Contributor
So you want to clip one polygon layer based on say priority = 1 of your other polygon layer, or clip based on each possible priority in the feature class? Yes you can do that.

Make a feature layer with a where clause of the features you want to clip
Clip
Enclose in a for loop if you want to do different where clauses base on variable values.
0 Kudos