I am trying to find the area of a particular polygon (OriginalPolygon, below), and I can do that... But, I'd like it in acres regardless of the original units of the polygon.(Data is coming into this script in a range of projections, but we're always interested in "acreage.")
If I was calculating geometry to store in a field, then I could use feat.area@acres -- but I don't need this stored as an attribute, I just need it as a temporary variable to tell the user. This question implies that unless I'm actually calculating geometry, the units of the shape area measurement are tied to the projection and therefore fixed.
So: Is there any way to calculate geometry in such a way that the value is only a numerical output that I can display as the script runs, or am I stuck with making an attribute field, calculating geometry, reading the field value to tell the user, and then deleting the field?
rows = arcpy.SearchCursor(OriginalPolygon)
shapeName = arcpy.Describe(OriginalPolygon).shapeFieldName
for row in rows:
feat = row.getValue(shapeName)
PolygonArea = feat.area