Import Metadata (Conversion)

Summary

Imports metadata to the target item after converting the source item's metadata to ArcGIS metadata, if appropriate. The source and target may be ArcGIS items or stand-alone metadata XML files.

This tool processes the source metadata before importing it and updates the target metadata after. Any intrinsic properties of the source item that were added automatically to its metadata by ArcGIS are removed along with any unique identifiers before converting the information to the ArcGIS metadata format, if necessary. After the imported information is saved, the target item's metadata is automatically updated with its intrinsic properties.

This tool is useful for copying metadata from one item to another when you start creating its metadata; the imported metadata acts as a template. Using another metadata document as a template can save time if two items share some information such as legal restrictions or a description of the project for which they were created.

NoteNote:

Existing metadata will be replaced by the imported metadata.

Usage

Syntax

ImportMetadata_conversion (Source_Metadata, Import_Type, Target_Metadata, Enable_automatic_updates)
ParameterExplanationData Type
Source_Metadata

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

If the source item is a stand-alone file, it must contain well-formed XML data.

Data Element; Layer
Import_Type

The format of the metadata that will be imported.

  • FROM_ARCGISThe source metadata is ArcGIS metadata. The metadata won't be converted.
  • FROM_ESRIISOThe source metadata contains ESRI-ISO-formatted metadata; that is, it was created using the ISO metadata editor provided with ArcGIS Desktop 9.3.1 and earlier releases. The source metadata will be converted to ArcGIS metadata when you run the tool.
  • FROM_FGDCThe source metadata is stored in the FGDC CSDGM metadata standard's XML format. The source metadata will be converted to ArcGIS metadata when you run the tool.
  • FROM_ISO_19139The source metadata is formatted according to the ISO 19139 metadata standard. The source metadata will be converted to ArcGIS metadata when you run the tool.

By default, the FROM_ISO_19139 conversion will be performed.

String
Target_Metadata

The item to which the metadata will be imported or a stand-alone XML file that will be replaced.

Data Element; Layer
Enable_automatic_updates
  • ENABLEInformation in the imported metadata describing the item's properties will be modified to contain the actual item properties and additional properties of the item not present in the imported metadata will be added. This is the default.
  • DISABLE Imported information won't be modified but additional properties of the item not present in the imported metadata will be added.
Boolean

Code Sample

ImportMetadata Example (Python Window)

Imports the source data's FGDC metadata to a geodatabase item. The original metadata is converted to ArcGIS metadata. Some methods of importing data into a geodatabase handle the original item's metadata while others do not.

import arcpy
from arcpy import env
env.workspace = "c:/data/data.gdb"
arcpy.ImportMetadata_conversion ("c:/data/streams.shp","FROM_FGDC","streams")

Environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

11/14/2011