Export Metadata Multiple (Conversion)

License Level:BasicStandardAdvanced

Summary

Exports metadata for many ArcGIS items to a designated folder. This tool is a model that uses Export Metadata to export metadata for many ArcGIS items.

Usage

Syntax

ExportMetadataMultiple_conversion (Source_Metadata, Translator, Output_Folder)
ParameterExplanationData Type
Source_Metadata
[Source_Metadata,...]

The set of items whose metadata will be converted, or the set of stand-alone XML files that will be converted.

Data Element
Translator

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

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

  • ARCGIS2FGDC.xmlTranslates content stored in the ArcGIS metadata format to the FGDC CSDGM XML format. This translator is used by default when you export metadata from the Description tab using the FGDC CSDGM Metadata style. Metadata is converted using an XSLT transformation and won't produce a log file.
  • ARCGIS2ISO19139.xmlTranslates content stored in the ArcGIS metadata format to the ISO 19139 XML format. This translator is used by default when you export metadata from the Description tab using any of the ISO-based metadata styles. It is the preferred translator for exporting metadata to the ISO 19139 XML format. Metadata is converted using an XSLT transformation and won't produce a log file.
  • ESRI_ISO2ISO19139.xmlTranslates content stored in either the ArcGIS metadata format or the ESRI-ISO metadata format to the ISO 19139 XML format. This translator is provided for backwards compatibility to support existing models and Python scripts. It has some known limitations with exporting metadata to the ISO 19139 XML format. Use the ARCGIS2ISO19139.xml translator instead. Metadata is converted using the Esri Metadata Translator tool's translation engine and produces a log file containing messages produced by the translation engine.
  • FGDC2ESRI_ISO.xmlTranslates content stored in the FGDC CSDGM XML format to the ArcGIS metadata format; that is, it translates metadata content that is visible under the FGDC Metadata (read-only) heading in the Description tab. This translator is used when you import FGDC-formatted metadata by running the Import Metadata tool with the FROM_FGDC type and when you upgrade metadata by running the Upgrade Metadata tool with the FGDC_TO_ARCGIS type. Metadata is converted using the Esri Metadata Translator tool's translation engine and produces a log file containing messages produced by the translation engine.
  • FGDC2ISO19139.xmlTranslates content stored in the FGDC CSDGM XML format to the ISO 19139 XML format; that is, it translates metadata content that is visible under the FGDC Metadata (read-only) heading in the Description tab. Metadata is converted using the Esri Metadata Translator tool's translation engine and produces a log file containing messages produced by the translation engine.
  • ISO19139_2ESRI_ISO.xmlTranslates content stored in the ISO 19139 XML format to the ArcGIS metadata format. This translator is used when you import ISO 19139-formatted metadata by running the Import Metadata tool with the FROM_ISO_19139 type. Metadata is converted using the Esri Metadata Translator tool's translation engine and produces a log file containing messages produced by the translation engine.
File
Output_Folder

An existing folder where the output XML files containing the converted metadata will be stored.

Folder

Code Sample

Export metadata for many ArcGIS items

Updates and exports metadata for several ArcGIS items to XML files that are formatted correctly for the ISO 19139 metadata standard. The output XML files are stored in the specified folder.

import arcpy
from arcpy import env
env.workspace = "C:/data"
#set local variables
sources = "vegetation;vegtypes;vegreport.doc;vegmap.mxd;veglayer.lyr"
dir = arcpy.GetInstallInfo("desktop")["InstallDir"]
translator = dir + "Metadata/Translator/ESRI_ISO2ISO19139.xml"
arcpy.ExportMetadataMultiple_conversion (sources, translator, "c:/data/export")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
3/3/2014