Доступно с лицензией Standard или Advanced.
Сводка
Reconciles a version against another version in its lineage.
Прежние версии:
This is a deprecated tool. This functionality has been replaced by the Reconcile Versions tool.
Использование
The reconcile process requires that you are the only user currently editing the version and the only user able to edit the version throughout the reconcile process until you save or post.
The reconcile process requires that you have full permissions to all the feature classes that have been modified in the version being edited.
Versioning tools only work with ArcSDE data. File and Personal geodatabases don't support versioning.
The geodatabase is designed to efficiently manage and support long transactions using versions.
The reconcile process detects differences between the edit version and the target version and flags these differences as conflicts. If conflicts exist, they should be resolved.
Синтаксис
arcpy.management.ReconcileVersion(in_workspace, version_name, target_name, {conflict_definition}, {conflict_resolution}, {aquired_locks}, {abort_if_conflicts}, {post})
Parameter | Объяснение | Тип данных |
in_workspace | The ArcSDE geodatabase containing the reconcilable version. The default is to use the workspace defined in the environment. | Workspace |
version_name | Name of the Edit Version to be reconciled with the Target Version. | String |
target_name | Name of any version in the direct ancestry of the Edit version, such as the parent version or the default version. | String |
conflict_definition (Дополнительный) | Describes the conditions required for a conflict to occur:
| String |
conflict_resolution (Дополнительный) | Describes the behavior if a conflict is detected:
| String |
aquired_locks (Дополнительный) | Determines whether feature locks will be acquired.
| Boolean |
abort_if_conflicts (Дополнительный) | Determines if the reconcile process should be aborted if conflicts are found between the target version and the edit version.
| Boolean |
post (Дополнительный) | Posts the current edit session to the reconciled target version.
| Boolean |
Производные выходные данные
Name | Объяснение | Тип данных |
out_workspace | The updated workspace. | Workspace |
Пример кода
The following stand-alone Python script uses the ReconcileVersion geoprocessing tool to reconcile a version with a version in the version's lineage and then posts that version.
# Name: ReconcileVersion_Example.py
# Description: Reconciles a version with a version in the version lineage and then posts that version
# Import system modules
import arcpy
# Set local variables
inWorkspace = "Database Connections/ninefour@gdb.sde"
versionName = "myVersion"
targetVersion = "dbo.DEFAULT"
# Execute ReconcileVersion
arcpy.ReconcileVersion_management(inWorkspace, versionName, targetVersion, "BY_OBJECT", "FAVOR_TARGET_VERSION", "LOCK_acquireD", "NO_ABORT", "POST")
Информация о лицензиях
- Basic: Нет
- Standard: Да
- Advanced: Да