import os, arcpy from arcpy import env path = os.path.join(os.environ['APPDATA'],'ESRI\\Desktop10.1\\ArcCatalog') env.workspace = path workspaces = arcpy.ListWorkspaces("*","SDE") for workspace in workspaces: print workspace
import arcpy from arcpy import env env.workspace = ... # your sde connection file as the SDE user ds = LisDataSets() for d in ds: Analyze(d) fcs = ListFeatureClasses() for fc in fcs: Analyze(fc) tbls = ListTables() for tbl in tbls: Analyze(tbl)
I have set the Environment Variable PYTHONPATH = C:\Python26\ArcGIS10.0\python.exe
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.