Export MGCP Metadata (Topographic Production)

Synthèse

Exports a Multinational Geospatial Co-production Program (MGCP) or MGCP Urban Vector Data (MUVD) metadata dataset (Cell or Resource, Subregion, and Source feature classes) to an .xml file.

Utilisation

  • One .xml file is created for each Cell or Resource feature that is selected. If none are selected, one .xml file is created for each feature in the Cell or Resource feature class.

  • The Cell or Resource feature class must be named Cell or Resource, respectively.

  • The XML schema matches the ISO 19139 specification and is compliant with MGCP or MUVD Technical Reference Documents (TRDs).

  • The metadata file contains information from the MGCP_Metadata or MUVD_Metadata datasets that are part of an MGCP or MUVD database.

  • The following feature classes are exported to an .xml file using this tool:

    • The Cell or Resource feature class contains metadata about individual 1 by 1 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.

Paramètres

ÉtiquetteExplicationType de données
Cell or Resource Features

The MGCP Cell or Resource feature layer that will be exported.

Feature Layer
Export Location

The directory where the metadata .xml files will be created.

Folder
Metadata Type
(Facultatif)

Specifies the type of metadata that will be exported.

  • MGCPMultinational Geospatial Co-production Program metadata will be exported. This is the default.
  • MUVDMGCP Urban Vector Data metadata will be exported.
String

Sortie obtenue

ÉtiquetteExplicationType de données
Output Export Location

The path to the metadata .xml file.

Folder

arcpy.topographic.ExportMetadata(in_cell_features, export_location, {metadata_type})
NomExplicationType de données
in_cell_features

The MGCP Cell or Resource feature layer that will be exported.

Feature Layer
export_location

The directory where the metadata .xml files will be created.

Folder
metadata_type
(Facultatif)

Specifies the type of metadata that will be exported.

  • MGCPMultinational Geospatial Co-production Program metadata will be exported. This is the default.
  • MUVDMGCP Urban Vector Data metadata will be exported.
String

Sortie obtenue

NomExplicationType de données
out_export_location

The path to the metadata .xml file.

Folder

Exemple de code

ExportMetadata example (stand-alone script)

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

# Name: ExportMGCPMetadata_sample.py
# Description: Export MGCP metadata from a geodatabase to an MGCP metadata XML file

# Import System Modules
import arcpy

# Check Out Extensions
arcpy.CheckOutExtension('Defense')

# Setting Local Variables
cell_features = r'C:\Testing\ExportMGCPMetadata\MGCP_TRD_4_3.gdb\MGCP_Metadata\Cell'
export_location = r'C:\Testing\ExportMGCPMetadata'
metadata_type = 'MGCP'

# Export MGCP metadata XML file
arcpy.topographic.ExportMetadata(cell_features, export_location, metadata_type)

# Check In Extensions
arcpy.CheckInExtension('Defense')

Environnements

Cet outil n’utilise pas d’environnement de géotraitement.

Informations de licence

  • Basic: Non
  • Standard: Nécessite Defense Mapping
  • Advanced: Nécessite Defense Mapping

Rubriques connexes