ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Справка
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Картографическая платформа вашей организации

ArcGIS Desktop

Полноценная профессиональная ГИС

ArcGIS Enterprise

ГИС предприятия

ArcGIS Developers

Инструменты для встраивания приложений с местоположениями

ArcGIS Solutions

Бесплатные шаблоны карт и приложений для отрасли

ArcGIS Marketplace

Получение приложения и данных для вашей организации.

  • Документация
  • Поддержка
Esri
  • Войти
user
  • Мой профиль
  • Выход

ArcMap

  • На главную
  • Начало работы
  • Карта
  • Анализ
  • Управление данными
  • Инструменты
  • Дополнительные модули

ChangeReporter

  • Сводка
  • Описание
  • Синтаксис
  • Пример кода

Сводка

Finds changes made to individual feature classes or an entire geodatabase between specified dates or between different versions based on a precreated preference. The changes that can be found include feature inserts, updates, and deletes.

Описание

The ChangeReporter function allows you to find changes made to individual feature classes or an entire geodatabase between specified dates or between different versions. The changes reported are additions, modifications, and deletions made in feature classes, tables, and data-driven elements that impact one or more charts. Once found, these changes are automatically committed to the Reviewer table for further examination. The feature classes and tables to be analyzed by the ChangeReporter function are stored in preferences.

Синтаксис

ChangeReporter (product_library, rev_workspace, rev_session, production_database, preference_name, compare_method, compare_parent_from, compare_child_to)
ПараметрОбъяснениеТип данных
product_library

The path to a connection file or the database used as the product library workspace.

String
rev_workspace

The ArcGIS Data Reviewer extension reviewer workspace to which results are written.

String
rev_session

The identifier for a Reviewer session. The session must exist in the Reviewer Workspace.

String
production_database

Path to the workspace containing the data used for production tasks or is referenced by maps and charts.

String
preference_name

Preference name as defined in the production database.

String
compare_method

Specify the type of comparison method that will be used.

  • VERSION—The comparison will be made between a parent and child version.
  • DATE—The comparison will be made between a start date time and end date time. This method will work only on the default version of the geodatabase.

String
compare_parent_from

Compare parent information: If the compare method is VERSION, the value will be a string with the parent version name. If compare method is DATE, it will be a datetime object containing the from date.

Variant
compare_child_to

Compare child information: If the compare method is VERSION, the value will be a string with the child version name. If compare method is DATE, it will be a datetime object containing the to date.

Variant

Пример кода

ChangeReporter example

For version compare, run the ChangeReporter tool to get changes in your database between versions.

# Name: ChangeReporter_ex1.py
# Description: Runs the ChangeReporter tool to get changes in your database between versions or dates
# Author: Esri
 
# Import arcpyproduction and aviation modules
import arcpy
import arcpyproduction
from arcpyproduction import aviation
from arcpyproduction.aviation import charting

# Check out Aviation license
arcpy.CheckOutExtension("Aeronautical")
 
# Set variables
product_library = "c:/data/PL.sde"
rev_workspace = "c:/data/reviwer_gdb.sde"
rev_session = 1
production_database = "c:/data/PD.sde"
preference_name = "TerminalProcedure"
compare_method = "VERSION"
compare_parent_from = "Default"
compare_child_to = "AIRAC1604"

# Get changes
charting.ChangeReporter(product_library, rev_workspace, rev_session, production_database, preference_name, compare_method, compare_parent_from, compare_child_to)

# Check in Aviation license
arcpy.CheckInExtension("Aeronautical")
ChangeReporter example 2

For date compare, run the ChangeReporter tool to get changes in your database between dates.

# Name: ChangeReporter_ex2.py
# Description: Runs the ChangeReporter tool to get changes in your database between versions or dates
# Author: Esri

# Import arcpyproduction and aviation modules
import arcpy
import arcpyproduction
from arcpyproduction import aviation
from arcpyproduction.aviation import charting

# Check out Aviation license
arcpy.CheckOutExtension("Aeronautical")

# Set variables
product_library = "c:/data/PL.sde"
rev_workspace = "c:/data/reviwer_gdb.sde"
rev_session = 1
production_database = "c:/data/PD.sde"
preference_name = "TerminalProcedure"
compare_method = "DATE"
compare_parent_from = datetime.datetime(2016,03,07,1,30)
compare_child_to = datetime.datetime(2016,04,07,1,30)
# Get changes
charting.ChangeReporter(product_library, rev_workspace, rev_session, production_database, preference_name, compare_method, compare_parent_from, compare_child_to)

# Check in Aviation license
arcpy.CheckInExtension("Aeronautical")

Связанные разделы

  • Reporting chart changes

ArcGIS Desktop

  • На главную
  • Документация
  • Поддержка

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Об Esri

  • О нас
  • Карьера
  • Блог Esri
  • Конференция пользователей
  • Саммит разработчиков
Esri
Расскажите нам, что вы думаете.
Copyright © 2022 Esri. | Конфиденциальность | Правовая информация