sr = arcpy.Describe(inLine).spatialReference sr.linearUnitName = "Foot" cursor = arcpy.da.SearchCursor(fc, ["SHAPE@"], "", sr)
Solved! Go to Solution.
cursor = arcpy.da.SearchCursor(fc, ["SHAPE@"], "", sr)
desc = arcpy.Describe(inLine) sr = desc.spatialReference sr.linearUnitName = "Foot" shapefieldname = desc.ShapeFieldName rows = arcpy.SearchCursor(fc, "", sr) for row in rows: feat = row.getValue(shapefieldname) # this feature should be reprojected. # do further manipulations as needed with the feat
sr = desc.spatialReference sr.linearUnitName = "Meter" print sr.linearUnitName