Export Metadata (Defense Mapping)

Résumé

Exports the Multinational Geospatial Co-production Program (MGCP) metadata datasets (Cell, Subregion, and Source feature classes) to an XML file.

Usage

Syntaxe

ExportMetadata_defense (in_cell_features, in_export_location)
ParamètreExplicationType de donnée
in_cell_features

The MGCP Cell feature layer to export.

Feature Layer
in_export_location

The directory where the metadata XML files will be created.

Folder

Exemple de code

ExportMetadata sample (stand-alone Python script)

In this example, the Metadata feature dataset is exported from the MGCP_TRD2 geodatabase to an XML file in the Metadata directory.

# Name: ExportMetadata.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_cell_features = "C:/Data/Defense/MGCP_TRD2.mdb/MGCP_Metadata/Cell"
in_export_location = "C:/Data/Defense/Metadata"

# Process: Export Metadata
arcpy.ExportMetadata_defense(in_cell_features, in_export_location)

# 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