import arcpy from arcpy import env env.workspace = r"C:\temp\python\test.gdb" list = [] dataset = "Polygon" spatial_ref = arcpy.Describe(dataset).spatialReference with arcpy.da.SearchCursor(dataset, ["SHAPE@"], "") as cursor: for row in cursor: for fc in arcpy.ListFeatureClasses("*"): with arcpy.da.SearchCursor(fc, ["SHAPE@"], "", spatial_ref) as cursor2: for row2 in cursor2: if not row[0].disjoint(row2[0]): list.append(fc) del cursor, cursor2 #remove duplicates from list list = dict.fromkeys(list) list = list.keys() print list
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.