Import Metadata (Defense Mapping)

Résumé

Imports metadata into a Multinational Geospatial Co-production Program (MGCP) database to perform maintenance on cells and subregions.

Usage

Syntaxe

ImportMetadata_defense (in_files, in_cell_features)
ParamètreExplicationType de donnée
in_files
[in_files,...]

The XML files that contain the metadata to import.

File
in_cell_features

The Cell feature class where the metadata will be imported.

Feature Layer

Exemple de code

Import Metadata example (stand-alone Python script)

In this example, the W118N32.xml file is imported into the MGCP_TRD2 geodatabase.

# Name: ImportMetadata.py
# Description: Imports the metadata dataset from an XML file to a geodatabase
# 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_files = "C:/Data/Defense/Metadata/W118N32.xml"
in_cell_features= "C:/Data/Defense/MGCP_TRD3.mdb/MGCP_Metadata/Cell"

# Execute Import Metadata function
arcpy.ImportMetadata_defense(in_files, in_cell_features)

# 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