Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Conversion toolbox > To Geodatabase toolset > Tools

Feature Class To Geodatabase (Conversion)

Release 9.2
Last modified April 2, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Converts one or more feature classes or feature layers to geodatabase feature classes.


Usage tips

Command line syntax
An overview of the Command Line window
FeatureClassToGeodatabase_conversion <Input_Feature_class; Input_Feature_class...> <Output_Geodatabase>

Parameter Explanation Data Type
<Input_Feature_class; Input_Feature_class...>

One or more feature classes or fetaure layers to be imported into an ArcSDE, file or personal geodatabase.

Feature Layer
<Output_Geodatabase>

The output or destination geodatabase. This can be a file or personal geodatabase, or an ArcSDE geodatabase.

Workspace | Feature Dataset
Data types for geoprocessing tool parameters


Command line example

Workspace c:\gisdata\shps
FeatureClassToGeodatabase cities.shp;counties.shp;townships.shp C:\gisdata\geodatabase.mdb

Scripting syntax
About getting started with writing geoprocessing scripts
FeatureClassToGeodatabase_conversion (Input_Features, Output_Geodatabase)

Parameter Explanation Data Type
Input_Features (Required)

One or more feature classes or fetaure layers to be imported into an ArcSDE, file or personal geodatabase.

Feature Layer
Output_Geodatabase (Required)

The output or destination geodatabase. This can be a file or personal geodatabase, or an ArcSDE geodatabase.

Workspace | Feature Dataset

Data types for geoprocessing tool parameters


Script example

# ConvertToGDBExample.py
# Description: Simple example of converting a list of shp files to SDE
# Requirements: Python and the Python win32all extension
# Author: ESRI
# Date 1/6/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
    gp.Workspace = "c:/geodata/shapefiles"
    gp.FeatureClassToGeodatabase("cities.shp;counties.shp;townships.shp;province.shp", "Database Connections/Connection to Doosie.sde")

except:
    # If an error occurred print the message to the screen
    print gp.GetMessages()

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.