import arcpy, os sde1 = r"D:\sde_transit\sde1.gdb" output = r"D:\sde_transit\sdeCSRS.gdb" arcpy.env.workspace = sde1 sdeList = arcpy.ListFeatureClasses() for fc in sdeList: result = arcpy.GetCount_management(fc) count1 = result.getOutput(0) fc2 = os.path.join(output,fc) if arcpy.Exists(fc2): result = arcpy.GetCount_management(fc2) count2 = result.getOutput(0) if count1 == count2: print fc+" OK" else: print "Problem with "+fc print count1 print count2 else: print fc2+" not found" pass # Clean up sdeList = None del arcpy.env.workspace del arcpy
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.