Select to view content in your preferred language

Calculating Percentages from two features

1156
1
06-25-2012 06:54 AM
WillDavis
Emerging Contributor
I have created an Intersect from a buffer and a feature class.  I want to find the percentages of the original feature class that now lies within my buffered zone.  I need to divide the new Shape_areas by the original Shape_areas then multiply by 100. How can I do this in Python?  Here is my code to help visualize what i have done so far ( http://pastie.org/4148734 )

Thanks!
Tags (2)
0 Kudos
1 Reply
markdenil
Frequent Contributor
It may be simplest to add a double precision item to your pre-intersect feature class (call it, say, ORIG_AREA), and calculate it to be equal to your pre-intersect Shape_Area. After the intersect, each polygon will have both the original area (ORIG_AREA) and the new area (Shape_Area). Then, just do, as they say, the math.
0 Kudos