Synchronize Metadata (Conversion)

License Level:BasicStandardAdvanced

Summary

Automatically updates an ArcGIS item's metadata with the current properties of the item.

For example, if the metadata describes the item as having one projection but the item's projection has changed since the last automatic update, the old projection information in the metadata will be replaced with the new projection information.

NoteNote:

The item's metadata must be stored in the ArcGIS metadata format; otherwise, the metadata will not be synchronized.

LegacyLegacy:

If a property was set using ArcGIS Desktop 9.3.1 or earlier to prevent ArcGIS from automatically updating this specific item's metadata with the item's properties, it will be ignored in the current release. ArcGIS metadata will always be synchronized with the item it descibes.

Usage

Syntax

SynchronizeMetadata_conversion (source, synctype)
ParameterExplanationData Type
source

The item whose metadata will be synchronized.

Data Element; Layer
synctype

The type of synchronization that will take place.

  • ALWAYSProperties of the source item are always added to or updated in its metadata. Metadata will be created if it doesn't already exist. This is the deault.
  • ACCESSEDProperties of the source item are added to or updated in its metadata when it is accessed. Metadata will be created if it doesn't already exist.
  • CREATEDMetadata will be created and properties of the source item will be added to it if the item doesn't already have metadata.
  • NOT_CREATEDProperties of the source item are added to or updated in existing metadata.
  • OVERWRITEThe same as "ALWAYS" except all information that can be recorded automatically in the metadata will be recorded. Any properties typed in by a person will be replaced with the item's actual properties.
String

Code Sample

Synchronize an ArcGIS item's metadata

Metadata for an ArcGIS item is updated to contain the current properties of the item only if the item already has metadata; new metadata won't be created.

import arcpy
from arcpy import env
env.workspace = "C:/data/data.gdb"
arcpy.SynchronizeMetadata_conversion("vegetation", "NOT_CREATED")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
10/24/2012