Check Out (数据管理)

许可等级:BasicStandardAdvanced

摘要

Creates a check-out replica from datasets in an ArcSDE geodatabase to an ArcSDE, file, or personal geodatabase for offline editing.

用法

语法

Checkout_management (in_data, {in_type}, out_workspace, out_name, {reuse_schema}, {get_related_data})
参数说明数据类型
in_data
[in_data,...]

The data to be replicated for offline editing. This list consists of layers and tables referencing versioned, editable data from an ArcSDE geodatabase.

Feature Layer; Table View
in_type
(可选)

Specifies if the data and schema will be replicated or if a SCHEMA-ONLY check-out of the database should occur. The default is DATA.

  • DATAThe data and the schema will be replicated. This is the default.
  • SCHEMA_ONLYOnly the schema will be replicated.
String
out_workspace

The workspace where the replicated data will be edited. This can be an ArcSDE, file, or personal geodatabase. If it's a personal geodatabase that doesn't exist, it will be created.

Workspace
out_name

The name that identifies the check-out replica. This is recorded and maintained in both the parent and the child database until synchronized.

String
reuse_schema
(可选)

Choose REUSE if you are using a database with the schema (no data) as the out_workspace. REUSE will be faster, since a schema will not need to be created during replica creation. The default is NO_REUSE.

  • NO_REUSEDo not reuse the schema. This is the default.
  • REUSEReuse the schema.
Boolean
get_related_data
(可选)

Specifies whether to replicate related data that has established relationships with the replicated data. For example, consider a feature (f1) inside the replica area and a related feature (f2) from another class outside the replica area. Feature f2 is included in the check-out replica if you choose to get related data.

  • RELATEDReplicate related data. This is the default.
  • NO_RELATEDDo not replicate related data.
Boolean

代码实例

CheckOut Example (Python Window)
import arcpy
from arcpy import env
env.workspace = "C:/Data/MySDEdata.sde"
arcpy.Checkout_management("roads", "DATA", "C:/Data/MyCheckout.gdb", "mycheckout1", "REUSE", "RELATED")

环境

相关主题

许可信息

ArcGIS for Desktop Basic:否
ArcGIS for Desktop Standard:是
ArcGIS for Desktop Advanced:是
9/15/2013