Geodatabase Schema Compare (Data Reviewer)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

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.

Utilisation

Syntaxe

GeodatabaseSchemaCompare_Reviewer (base_geodatabase_schema, test_geodatabase_schema, output_folder_path, {ignore_options})
ParamètreExplicationType de données
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,...]
(Facultatif)

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

Exemple de code

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)

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Requis Data Reviewer
ArcGIS for Desktop Standard: Requis Data Reviewer
ArcGIS for Desktop Advanced: Requis Data Reviewer
4/26/2014