ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Import MGCP Metadata

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

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

Usage

  • The metadata can only be imported into an MGCP database that already contains the MGCP_Metadata feature dataset.

  • The input XML files must match the ISO 19139 specification and be compliant with TRD 2, TRD 3, and TRD 4.

  • Data is imported into the following feature classes using this tool:

    • The Cell feature class contains metadata about individual 1x1-decimal degree extents with which the data is associated.
    • The Subregion feature class contains metadata about the specific area within the cell where the data meets requirements for a specific purpose.
    • The Source feature class supplies information about the source used in the feature extraction.

Syntax

arcpy.defense.ImportMetadata(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

Derived Output

NameExplanationData Type
out_cells

Cell that has been updated with information from input metadata XML.

Feature Layer

Code sample

Import Metadata example (stand-alone 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 = r"C:/Data/Defense/Metadata/W118N32.xml"
inCellFeatures= r"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

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Requires Defense Mapping
  • Advanced: Requires Defense Mapping

Related topics

  • An overview of the Geodatabase toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal