Change Reporter (Aeronautical)
Summary
Finds changes made to individual feature classes or an entire geodatabase between specified dates. The changes that can be found include feature inserts, updates, and deletes.
Once found, these changes are automatically committed to an ArcGIS Data Reviewer for Desktop extension Reviewer table for further review.
Usage
-
This tool only works with archive-enabled databases.
-
Archiving can only be enabled with enterprise databases.
-
You have to be connected to the Default version.
-
For feature classes, modifications are attribute and geometry changes.
-
Learn more about using this tool from the Aeronautical Data Management toolbar
Syntax
Parameter | Explanation | Data Type |
in_reviewer_workspace |
The ArcGIS Data Reviewer for Desktop extension reviewer workspace to which results are written. | Workspace |
session_id |
The identifier and name for a Reviewer session. The session must exist in the Reviewer Workspace. | String |
in_workspace |
The geodatabase in which you want to search for changes. This must be an enterprise database that has archiving enabled. | Workspace |
beginning_date_index |
The beginning date and time for the range you want to use to find additions, modifications, and deletions. | Date |
end_date_index |
The end date and time for the range you want to use to find additions, modifications, and deletions. | Date |
tables_index [tables_index,...] |
A list of all the feature classes and tables in the selected geodatabase (in_workspace) that you want to compare. | String |
change_adds_index |
Indicates whether or not you want to report additions to feature classes and tables as changes.
| Boolean |
change_modifications_index |
Indicates whether or not you want to report modifications to feature classes and tables as changes.
| Boolean |
change_deletes_index |
Indicates whether or not you want to report deletions from feature classes and tables as changes.
| Boolean |
Code Sample
The following Python window script demonstrates how to use the ChangeReporter tool.
# Reviewer workspace and session
reviewerWorkspace = r'c:\data\reviewer.gdb'
sessionId = "Session 1 : Session 1"
# enterprise geodatabase to scan for changes
inWorkspace = "Database Connections\\EGDB_5201.sde"
# date range
inStartDate = "3/1/2010"
inEndDate = "4/1/2010"
# list of feature classes to scan for changes
inFeatures = "ADHP_C; ADHPSurfacePoint_C;"
# change types
adds = "CHANGE_ADDS"
mods = "CHANGE_MODIFICATIONS"
deletes = "CHANGE_DELETES"
# Execute ChangeReporter tool
arcpy.ChangeReporter_aeronautical(reviewerWorkspace, sessionId, inWorkspace, inStartDate, inEndDate, inFeatures, adds, mods, deletes)