Import Metadata (Defense Mapping)

License Level:BasicStandardAdvanced

Summary

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

Usage

Syntax

ImportMetadata_defense (files, in_cell_features)
ParameterExplanationData Type
files
[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

Code Sample

Import Metadata example (stand-alone Python script)

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

# Name: ImportMetadata_Example.py
# Description: Imports the metadata dataset from an XML file to a geodatabase
# Requirements: Defense Mapping extension

# Import arcpy module
import arcpy

# Check out a DefenseMapping extension license
arcpy.CheckOutExtension("defense")

# Local variables:
inFiles = "C:/Data/Defense/Metadata/W118N32.xml"
inCellFeatures= "C:/Data/Defense/MGCP_TRD3.mdb/MGCP_Metadata/Cell"

# Execute Import Metadata function
arcpy.ImportMetadata_defense(inFiles, inCellFeatures)

# Check in the Defense Mapping extension
arcpy.CheckInExtension("defense")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Defense Mapping
ArcGIS for Desktop Advanced: Requires Defense Mapping
11/30/2015