Geodatabase Schema Compare (Data Reviewer)

ライセンス レベル:BasicStandardAdvanced

サマリ

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.

使用法

構文

GeodatabaseSchemaCompare_Reviewer (base_geodatabase_schema, test_geodatabase_schema, output_folder_path, {ignore_options})
パラメータ説明データ タイプ
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,...]
(オプション)

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

コードのサンプル

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)

環境

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: 次のものが必要 Data Reviewer
ArcGIS for Desktop Standard: 次のものが必要 Data Reviewer
ArcGIS for Desktop Advanced: 次のものが必要 Data Reviewer
4/26/2014