if geom.touches(row2.shape)
fc = "lines" rows = arcpy.SearchCursor(fc) for row in rows: geom = row.Shape rows2 = arcpy.UpdateCursor(fc) for row2 in rows2: if row2.shape.touches(geom): print str(row.OBJECTID) + " touches " + str(row2.OBJECTID) row2.ID = row.OBJECTID rows2.updateRow(row2) del row, rows, row2, rows2
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.