Import MGCP Metadata (Topographic Production)

Zusammenfassung

Imports Multinational Geospatial Co-production Program (MGCP) or MGCP Urban Vector Data (MUVD) metadata to an MGCP or MUVD database.

Verwendung

    Vorsicht:

    Mit diesem Werkzeug werden die Eingabedaten geändert. Weitere Informationen und Strategien zur Vermeidung unerwünschter Datenänderungen finden Sie unter Werkzeuge, die Eingabedaten ändern oder aktualisieren.

  • The metadata can only be imported into an MGCP or MUVD database.

  • The input .xml files must match the MGCP or MUVD metadata specification and be compliant with MGCP or MUVD Technical Reference Documents (TRDs).

  • Data is imported into MGCP or MUVD feature classes.

Parameter

BeschriftungErläuterungDatentyp
Metadata Files

The .xml files that contain the metadata that will be imported.

File
Cell or ResourceSrf Features

The Cell or ResourceSrf feature class where the metadata will be imported.

Feature Layer
Metadata Type
(optional)

Specifies the type of metadata that will be imported.

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

Abgeleitete Ausgabe

BeschriftungErläuterungDatentyp
Output Cell or ResourceSrf Features

The Cell or ResourceSrf feature class that has been updated with information from the input metadata XML.

Feature Layer

arcpy.topographic.ImportMetadata(files, in_cell_features, {metadata_type})
NameErläuterungDatentyp
files
[files,...]

The .xml files that contain the metadata that will be imported.

File
in_cell_features

The Cell or ResourceSrf feature class where the metadata will be imported.

Feature Layer
metadata_type
(optional)

Specifies the type of metadata that will be imported.

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

Abgeleitete Ausgabe

NameErläuterungDatentyp
out_cells

The Cell or ResourceSrf feature class that has been updated with information from the input metadata XML.

Feature Layer

Codebeispiel

ImportMetadata example (stand-alone script)

In this example, the E022N02.xml file is imported to the MGCP_TRD_4_4 geodatabase.

# Name: ImportMGCPMetadata_sample.py
# Description: Imports Metadata XML file in to Cell feature

# Import System Modules
import arcpy

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

# Setting Local Variables
metadata_file = r'C:\ProProjects\ImportMetadata\E022N02.xml'
cell_feature = r'C:\ProProjects\ImportMetadata\MGCP_TRD_4_4.gdb\MGCP_Metadata\Cell'
metadata_type = 'MGCP'

# Importing metadata xml into TRD 4.4 database
arcpy.topographic.ImportMetadata(metadata_file, cell_feature, metadata_type)

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

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Lizenzinformationen

  • Basic: Nein
  • Standard: Erfordert Defense Mapping
  • Advanced: Erfordert Defense Mapping

Verwandte Themen