fc = "AirportsAnno" fc2 = "AirportsAnno_1" y = str(arcpy.GetCount_management(fc)) x = 1 while x <= int(y): rows = arcpy.SearchCursor(fc, "OBJECTID = " + str(x)) rows2 = arcpy.SearchCursor(fc2, "OBJECTID = " + str(x)) for row in rows: geom = row.shape for row2 in rows2: geom2 = row2.shape if geom.equals(geom2): print "OBJECTID " + str(row.OBJECTID) + " matches" else: print "OBJECTID " + str(row.OBJECTID) + " does not match" x += 1 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.