Export Metadata (Conversion)

Summary

Updates metadata to contain the most current properties of the ArcGIS item before processing the metadata and finally exporting it to an XML file that conforms to a standard metadata format.

Initial processing is performed to produce the best results when exporting information to a standard metadata format. Afterwards, the metadata is exported using the ESRI Metadata Translator.

Usage

Syntax

ExportMetadata_conversion (Source_Metadata, Translator, {Output_File})
ParameterExplanationData Type
Source_Metadata

The item whose metadata will be converted or a stand-alone XML file that will be converted.

Data Element; Layer
Translator

An XML file that defines the conversion that will be performed.

The translator files provided with ArcGIS Desktop can be found in the <ArcGIS Installation Location>\Metadata\Translator folder. The following conversions are supported:

  • ArcGIS to FGDC (ARCGIS2FGDC.xml)
  • ArcGIS to ISO 19139 (ARCGIS2ISO19139.xml)
  • FGDC to ArcGIS (FGDC2ESRI_ISO.xml)
  • FGDC to ISO 19139 (FGDC2ISO19139.xml)
  • ISO 19139 to ArcGIS (ISO19139_2ESRI_ISO.xml)
  • ArcGIS or ESRI-ISO to ISO 19139 (ESRI_ISO2ISO19139.xml)
File
Output_File
(Optional)

A stand-alone XML file that will be created containing the converted metadata.

File

Code Sample

ExportMetadata Example (Python Window)

Updates and exports ArcGIS metadata to an XML file that is formatted correctly for the ISO 19139 metadata standard.

import arcpy
from arcpy import env
env.workspace = "C:/data"
#set local variables
dir = arcpy.GetInstallInfo("desktop")["InstallDir"]
translator = dir + "Metadata/Translator/ESRI_ISO2ISO19139.xml"
arcpy.ExportMetadata_conversion ("data.gdb/roads", translator, 
    "roads_19139.xml")

Environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

11/14/2011