ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

Help

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 其他...

Load Data

  • 摘要
  • 用法
  • 语法
  • 环境
  • 许可信息

摘要

Moves features from one schema to another by loading data from a source to a target workspace. Data mapping rules described in a cross-reference database are applied during the load.

Data that matches the schema defined in the cross-reference database for the source is appended to the target workspace. The cross-reference database contains a DatasetMapping table that lists pairs of source and target dataset names. Each source and target name pair can have a WHERE clause and a subtype. The WHERE clause defines a subset of features in the source to append to the target. Subtype identifies a subtype in the target feature class into which features are loaded.

用法

  • The cross-reference database has other tables that affect load data functionality. These tables enable the following operations:

    • Map fields between data sources.
    • Override values from source to target.
    • Specify different source and target schema owners for enterprise geodatabases.
  • Use the Dataset Mapping Definitions parameter to specify which feature classes, shapefiles, or coverages to load from the input source to the target workspace. The list of sources and targets comes from the DatasetMapping table in the cross-reference database.

  • You can only set WHERE clauses and subtypes in the DatasetMapping table in the cross-reference database. You cannot set these in the Dataset Mapping Definitions parameter.

  • The ID value used in the Dataset Mapping Definitions parameter must refer to an existing row ID in the DatasetMapping table in the cross-reference database. The row in the DatasetMapping table contains the name of the source and target datasets.

  • This tool returns the warning Source dataset [dataset name] not found or is inaccessible for each source feature class listed in the cross-reference database that is not found in the input sources workspace.

  • This tool returns the warning Target dataset [dataset name] not found or is inaccessible for each target feature class listed in the cross-reference database that is not found in the target workspace.

语法

LoadData(in_cross_reference, in_sources, in_target, {in_dataset_map_defs}, {row_level_errors})
参数说明数据类型
in_cross_reference

The path to a cross-reference database.

Workspace
in_sources
[in_sources,...]

A list of workspaces that contain the source features to load into the target workspace.

Workspace
in_target

The target workspace that contains the schema referenced in the cross-reference database. Source features are loaded into this workspace.

Workspace
in_dataset_map_defs
[in_dataset_map_defs,...]
(可选)

The source to target feature class mapping list. The format of this string is id | SourceDataset | TargetDataset | WhereClause | Subtype.

String
row_level_errors
(可选)

Indicates if the tool will log errors that occur while inserting new rows into feature classes and tables in the in_target parameter.

  • ROW_LEVEL_ERROR_LOGGING —Log errors that occur during individual row-level inserts. This is the default.
  • NO_ROW_LEVEL_ERROR_LOGGING —Do not log errors that occur during individual row-level inserts.
Boolean

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 需要 Production Mapping
  • ArcGIS Desktop Advanced: 需要 Production Mapping

相关主题

  • An overview of the Conversion toolset
  • Loading data into a geodatabase
  • Cross-reference mapping files
  • Creating a cross-reference database

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2019 Esri. | 隐私政策 | 法律声明