Export MGCP Metadata (Topographic Production)

Краткая информация

Exports Multinational Geospatial Co-production Program (MGCP) metadata datasets (Cell, Subregion, and Source feature classes) to an XML file.

Использование

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

  • The Cell feature class must be named Cell.

  • The XML schema matches the ISO 19139 specification and is compliant with TRD 2, TRD 3, and TRD 4.

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

  • The following feature classes are exported to an XML file 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.

Параметры

ПодписьОписаниеТип данных
Cell Features

The MGCP Cell feature layer to export.

Feature Layer
Export Location

The directory where the metadata XML files will be created.

Folder

Производные выходные данные

ПодписьОписаниеТип данных
Output Export Location

Path to the metadata XML file.

Folder

arcpy.topographic.ExportMetadata(in_cell_features, export_location)
ИмяОписаниеТип данных
in_cell_features

The MGCP Cell feature layer to export.

Feature Layer
export_location

The directory where the metadata XML files will be created.

Folder

Производные выходные данные

ИмяОписаниеТип данных
out_export_location

Path to the metadata XML file.

Folder

Пример кода

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'

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

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

Параметры среды

Этот инструмент не использует параметры среды геообработки

Информация о лицензиях

  • Basic: Нет
  • Standard: Обязательно Defense Mapping
  • Advanced: Обязательно Defense Mapping

Связанные разделы