ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Reconcile Version

在 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.

语法

ReconcileVersion_management (in_workspace, version_name, target_name, {conflict_definition}, {conflict_resolution}, {acquire_locks}, {abort_if_conflicts}, {post})
参数说明数据类型
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:

  • BY_OBJECT —Any changes to the same row or feature in the parent and child versions will conflict during reconcile. This is the default.
  • BY_ATTRIBUTE —Only changes to the same attribute of the same row or feature in the parent and child versions will be flagged as a conflict during reconcile. Changes to different attributes will not be considered a conflict during reconcile.
String
conflict_resolution
(可选)

Describes the behavior if a conflict is detected:

  • FAVOR_TARGET_VERSION —For all conflicts, resolves in favor of the target version. This is the default.
  • FAVOR_EDIT_VERSION —For all conflicts, resolves in favor of the edit version.
String
acquire_locks
(可选)

Determines whether feature locks will be acquired.

  • LOCK_ACQUIRED —Acquires locks when there is no intention of posting the edit session. This is the default.
  • NO_LOCK_ACQUIRED —No locks are acquired and the edit session will be posted to the target version.
Boolean
abort_if_conflicts
(可选)

Determines if the reconcile process should be aborted if conflicts are found between the target version and the edit version.

  • NO_ABORT —Does not abort the reconcile if conflicts are found. This is the default.
  • ABORT_CONFLICTS —Aborts the reconcile if conflicts are found.
Boolean
post
(可选)

Posts the current edit session to the reconciled target version.

  • NO_POST —Current edits will not be posted to the target version after the reconcile. This is the default.
  • POST —Current edits will be posted to the target version after the reconcile.
Boolean

代码示例

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
# Author: ESRI

# 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")

环境

  • 当前工作空间
  • 输出配置关键字
  • 临时工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 是
  • ArcGIS Desktop Advanced: 是

相关主题

  • 协调版本
  • 协调版本快速浏览

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
© Copyright 2016 Environmental Systems Research Institute, Inc. | 隐私政策 | 法律声明