Geodatabase To Shape (Defense Mapping)

Résumé

Exports one or more feature classes in a Multinational Geospatial Co-production Program (MGCP) geodatabase to shapefiles.

Usage

Syntaxe

GeodatabaseToShape_defense (in_features, in_shape_folder, in_output_type)
ParamètreExplicationType de donnée
in_features
[in_features,...]

The feature layers used to create the shapefiles.

Feature Layer
in_shape_folder

The target location for the shapefiles.

Folder
in_output_type

Indicates what method will be used to export coded domain values.

  • ValuesExports coded domain values as raw values. This is the default.
  • DescriptionsExports coded domain values using their descriptions rather than raw values.
String

Exemple de code

GeodatabaseToShape example (stand-alone Python script)

MGCP feature classes are exported from the MGCP_TRD2 geodatabase to a local directory.

# Name: GeodatabaseToShape.py
# Description: Exports feature classes from an MGCP workspace to shapefiles
# Author: ESRI
# Date: June 2010

# Import arcpy module
import arcpy

# Check out a DefenseMapping extension license
arcpy.CheckOutExtension("defense")

# Import the Defense Mapping toolbox - you may have to alter this path
arcpy.ImportToolbox(r"C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Defense Mapping Tools.tbx")

# Local variables
in_features = r"C:\Data\Defense\MGCP_TRD3.mdb\MGCP\AerofacA;C:\Data\Defense\MGCP_TRD3.mdb\MGCP\AerofacP;C:\Data\Defense\MGCP_TRD3.mdb\MGCP\AgristrA;C:\Data\Defense\MGCP_TRD3.mdb\MGCP\AgristrP"
in_shape_folder = r"C:\Data\Shapefiles"
in_output_type = "Values"

# Execute Geodatabase To Shape function
arcpy.GeodatabaseToShape_defense(in_features, in_shape_folder, in_output_type)

# Check in the Defense Mapping extension
arcpy.CheckInExtension("defense")

Environnements

Cet outil ne fait appel à aucun environnement de traitement de données géographiques

Rubriques associées

Informations de licence

ArcView : Non
ArcEditor : Non
ArcInfo : RequiertDefense Mapping

10/2/2010