fc = "Boundary" rows = arcpy.SearchCursor(fc) for row in rows: geom = row.shape if geom.firstPoint.X == geom.lastPoint.X: print row.OBJECTID del row, rows
How would I implement this into a field calculator expression? I'm a beginner with python but I could use some help. Basically I'm trying to implement this but rather than print the OID I want to populate a 1 for closed polylines and 0 for open. Thanks.