I am trying to pull area and length from the SHAPE@ object in an in memory file. When a feature is split into 2 features after the intersect, the area is zero! Any ideas?
legal_sr_sec= arcpy.SpatialReference('NAD 1983 UTM Zone 13N')
arcpy.env.outputCoordinateSystem = legal_sr_sec
arcpy.Intersect_analysis([sections, feature], "in_memory\\sections_join")
desc=arcpy.Describe("in_memory\\sections_join")
if desc.shapeType == "Polygon":
with arcpy.da.UpdateCursor("in_memory\\sections_join",["SHAPE@"]) as uc:
for row in uc:
geom=row[0]
area=geom.getArea()
length=geom.getLength()
arcpy.AddMessage(area)
AtoL_num=float(area/length)
if AtoL_num < 1:
uc.deleteRow()