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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.