Import From MGCP (Defense Mapping)

许可等级:BasicStandardAdvanced

摘要

Imports Multinational Geospatial Co-production Program (MGCP) metadata into a Topographic Features Data Management (TFDM) geodatabase.

用法

语法

ImportFromMGCP_defense (in_cell_features, in_dataset_areas)
参数说明数据类型
in_cell_features

The input MGCP Cell features. The tool reads Subregion and Source features from the same workspace that stores in_cell_features.

Feature Layer
in_dataset_areas

The input DatasetSrf features. The tool reads CollectionSrf features from the same workspace that stores in_dataset_areas features.

Feature Layer

代码实例

ImportFromMGCP example (stand-alone Python script)

The following script creates MGCP Cell and TFDM DatasetSrf feature layers. It executes the ImportFromMGCP function, using the feature layers as input.

# ImportFromMGCP_Example.py
# Description: Imports MGCP metadata into TFDM
# Requirements: Defense Mapping extension

# Import arcpy
import arcpy
arcpy.CheckOutExtension("defense")

# variables for data paths and feature layers
cell = "C:/data/TFDM_Metadata_Tool_Data/Import/Import_MX_MGCP_TRD3.gdb/MGCP_Metadata/Cell"
DatasetAreas = "C:/data/tfdm.gdb/LTDS/DatasetAreas"
mgcpCellFeatures = "Cell_Layer"
tfdmDatasetareaFeatures = "DatasetAreas"

# MGCP Cell Feature Layer
arcpy.MakeFeatureLayer_management(cell, mgcpCellFeatures)

# TFDM DatasetArea feature layer
arcpy.MakeFeatureLayer_management(DatasetAreas, tfdmDatasetareaFeatures)

# Import MGCP into TFDM
arcpy.ImportFromMGCP_defense(mgcpCellFeatures, tfdmDatasetareaFeatures)

arcpy.CheckInExtension("defense")

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 需要 Defense Mapping
ArcGIS for Desktop Advanced: 需要 Defense Mapping
4/27/2014