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.
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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.