Geodatabase Schema Compare (Data Reviewer)

License Level:BasicStandardAdvanced

Summary

Compares a base and test schema and reports the differences between the two that are relevant to data loading, such as feature classes, tables, spatial references, and field definitions.

Usage

Syntax

GeodatabaseSchemaCompare_Reviewer (base_geodatabase_schema, test_geodatabase_schema, output_folder_path, {ignore_options})
ParameterExplanationData Type
base_geodatabase_schema

XML document or geodatabase that contains the authoritative version of the geodatabase schema.

Workspace;File
test_geodatabase_schema

XML document or geodatabase that contains the schema to compare to the base version.

Workspace;File
output_folder_path

Folder where the comparison report will be generated. This folder will contain other folders and files that support the derived html_output parameter.

Folder
ignore_options
[ignore_options;ignore_options,...]
(Optional)

Indicates the properties that will not be compared.

  • IGNORE_DOMAINSDo not compare domain properties.
  • IGNORE_DATABASETOPOLOGYDo not compare topology properties.
  • IGNORE_HASMSDo not compare measure properties.
  • IGNORE_HASZSDo not compare elevation properties.
String

Code Sample

GeodatabaseSchemaCompare example (stand-alone Python script)

The following Python example demonstrates how to use the GeodatabaseSchemaCompare tool.

# Name: SchemaCompareExample.py
# Description: Compares two schemas and reports their differences
# Author: Esri
# Date: September 2013

import arcpy
arcpy.CheckOutExtension("datareviewer")

# Define variables
base = "c:/data/edit_sample.xml"
test = "c:/data/edit_modifications.xml"
folder = "c:/data/sc_results"
ignoreOptions="IGNORE_DATABASETOPOLOGY;IGNORE_HASMS"

# Compare the workspaces
arcpy.SchemaCompare_Reviewer(base,test,folder,ignoreOptions)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires Data Reviewer
ArcGIS for Desktop Standard: Requires Data Reviewer
ArcGIS for Desktop Advanced: Requires Data Reviewer
3/3/2014