Feature Class To Shapefile (multiple) (Conversion) |
|
Release 9.2
Last modified April 2, 2008 |
![]() ![]() ![]() Print all topics in : "Tools" |
Copies the features from one or more feature classes or layers to a shapefile.
Usage tips
The name of the output shapefile will be the name of the input feature class. For example, if the input is c:\gdb.mdb\Gondor, the output shapefile will be named gondor.shp. To explicitly control the output shapefile name and for some additional conversion options, see the Feature Class to Feature Class tool.
If the output shapefile already exists in the Output Folder, a number will be appended to the end to make it unique (for example, Gondor_1.shp).
The coordinate system of each output shapefile will be the same as the input feature classes. If the Output Coordinate System Environment is set, the output will be projected to that coordinate system.
The following environments affect this tool: configKeyword, extent, MDomain, outputCoordinateSystem, outputMFlag, outputZFlag, scratchWorkspace, spatialGrid1, spatialGrid2, spatialGrid3, workspace, XYDomain, and ZDomain.
Command line syntax
An overview of the Command Line window
FeatureclassToShapefile_conversion <Input_Feature_class; Input_Feature_class...> <Output_Folder>
Parameter | Explanation | Data Type |
<Input_Feature_class; Input_Feature_class...> |
The list of input feature classes or feature layers that will be converted and added to the Output Folder. |
Feature Layer |
<Output_Folder> |
The output or destination folder. |
Folder |
FeatureClassToShapefile c:\gdb.mdb\Valinor;c:\gdb.mdb\Numenor.shp c:\myShapefiles
Scripting syntax
About getting started with writing geoprocessing scripts
FeatureclassToShapefile_conversion (Input_Features, Output_Folder)
Parameter | Explanation | Data Type |
Input_Features (Required) |
The list of input feature classes or feature layers that will be converted and added to the Output Folder. |
Feature Layer |
Output_Folder (Required) |
The output or destination folder. |
Folder |
# ConvertToSHPExample.py # Description: Simple example showing a use of the FeatureClassToShapefile tool # Requirements: Python and the Python win32all extension # Author: ESRI # Data 1/1/2004 # Create the Geoprocessor import arcgisscripting gp = arcgisscripting.create() # Put in error trapping in case an error occurs when running tool try: # Set the workspace, then export list of SDE feature classes gp.Workspace = "Database Connections/Connection to Doosie.sde/ED.Europe" gp.FeatureClassToShapefile("ED.roads;ED.cities;ED.countries","c:/geodata/Europe/shapefiles") except: # If an error occurred print the message to the screen print gp.GetMessages()