import arcgisscripting, os gp = arcgisscripting.create(9.3) gp.overwriteOutput = True gp.workspace = "c:/temp/base" outputCS = gp.CreateObject("SpatialReference") outputCS.createFromFile(os.path.join(gp.getinstallinfo()['InstallDir'], "Geographic Coordinate Systems/North America/NAD 1927.prj")) transformation = "" outFolder = os.path.join(gp.workspace, "projected") gp.CreateFolder_management(*os.path.split(outFolder)) for gdb in gp.ListWorkspaces("", "ACCESS"): # Get all personal geodatabases gp.workspace = gdb gdb = os.path.basename(gdb) toProject = gp.ListFeatureClasses() + gp.ListDatasets() gp.CreatePersonalGDB_management(outFolder, gdb) gp.BatchProject_management(toProject, os.path.join(outFolder, gdb), outputCS, "", transformation)
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.