I want to convert many e00 files to shapfiles by commends, can you give me an example of "import_arc" or "QuickImport" command? both of them were failed on my PC. I also posted a thread in the sub-forum of ArcGIS Desktop - General, however, nobody replied! Here is the adress. http://forums.arcgis.com/threads/9067-Why-the-convertion-failed-%28-E00-gt-shp-%29
import arcgisscripting, os gp = arcgisscripting.create() gp.CheckOutExtension("DataInteroperability") # Directory containing E00 files strE00Directory = "C:/temp" # Temporary Geodatabase required for QuickImport strTempGdb = strE00Directory + "/tempOutput.gdb" # loop through list of files in the E00 directory for strFile in os.listdir(strE00Directory): if strFile.endswith(".e00"): print "Extracting " + strFile + "..." # convert E00 to file geodatabase feature class gp.QuickImport(strFile, strTempGdb) # Set the workspace to the gdb, loop through all of the extracted feature classes # and create a shapefile from each. gp.workspace = strTempGdb objDatasets = gp.listfeatureclasses() objDataset = objDatasets.next() while objDataset: strOutputFile = strE00Directory + "/" + objDataset + ".shp" print "Creating " + strOutputFile + "..." gp.copyfeatures_management(objDataset, strOutputFile) objDataset = objDatasets.next() # delete the temp gdb since QuickImport requires a new gdb each time its run gp.delete_management(strTempGdb)
import arcgisscripting gp = arcgisscripting.create() gp.workspace = "c:/workspace" gp.toolbox = "arc" gp.import("auto", "tracts.e00", "tracts")
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.