Feature Class To Shapefile (Conversion)

License Level:BasicStandardAdvanced

Summary

Copies the features from one or more feature classes or layers to a folder of shapefiles.

Usage

Syntax

FeatureClassToShapefile_conversion (Input_Features, Output_Folder)
ParameterExplanationData Type
Input_Features
[Input_Features,...]

The list of input feature classes or feature layers that will be converted and added to the output folder.

Feature Layer
Output_Folder

The folder where the shapefiles will be written.

Folder

Code Sample

FeatureClassToShapefile example (Python window)

The following Python window script demonstrates how to use the FeatureClassToShapefile function in immediate mode.

import arcpy
from arcpy import env
env.workspace = "C:/data/airport.gdb"
arcpy.FeatureClassToShapefile_conversion(["county", "parcels", "schools"],
                                         "C:/output")
FeatureClassToShapefile example 2 (stand-alone script)

The following stand-alone script demonstrates how to use the FeatureClassToShapefile function.

# Name: FeatureClassToShapefile_Example2.py
# Description: Use FeatureClassToGeodatabase to copy feature classes
#  to shapefiles
 
# Import system modules
import arcpy
from arcpy import env
 
# Set environment settings
env.workspace = "C:/data"
 
# Set local variables
inFeatures = ["climate.shp", "majorrds.shp"]
outLocation = "C:/output"
 
# Execute FeatureClassToGeodatabase
arcpy.FeatureClassToShapefile_conversion(inFeatures, outLocation)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
10/24/2012