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
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.