Geodatabase To Shape (Defense Mapping)

汇总

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

用法

语法

GeodatabaseToShape_defense (in_features, in_shape_folder, in_output_type)
参数说明数据类型
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

代码示例

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

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcView: 否
ArcEditor: 否
ArcInfo: 需要 Defense Mapping

9/30/2010