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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.