Geodatabase To Shape (Defense Mapping)

Resumen

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

Uso

Sintaxis

GeodatabaseToShape_defense (in_features, in_shape_folder, in_output_type)
ParámetroExplicaciónTipo de datos
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

Ejemplo de código

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")

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento

Temas relacionados

Información de licencia

ArcView: No
ArcEditor: No
ArcInfo: Requiere Defense Mapping

9/30/2010