I want to calculate the area of each polygon in a shapefile. How do I control what the units of measurement are?
def getArea(shapefile): """Print area of polygons""" Rows = ARCPY.SearchCursor( shapefile ) for row in Rows: tmp_area = row.area # this assumes a field name 'area' exists print str(tmp_area)
I looked to see if there is any setting in the
arcpy.env. module but could not find one. If I do set the units in my python script, does that mean that all aspects of the shapefile remain unchanged? For example, if the shapefile had units of feet, in my script I change the units to KM, will the shapefile still have units of feet afterwards?