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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.