ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

Add Bathymetry

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Registers one or more bathymetry datasets described in bathymetry dataset properties (.bdprops) files to a BIS geodatabase, where one bathymetry dataset is described per .bdprops file. A .bdprops file is created using the Define Bathymetry geoprocessing tool. This geoprocessing tool performs in the same way as the Add Bathymetry desktop tool with the difference being that it can be invoked via a Python script or a geoprocessing model, like any other geoprocessing tool. This tool performs a number of validation checks to ensure that no incorrect or duplicate datasets are registered with the BIS geodatabase.

使用方法

  • Turning off the Generate/update overviews for the Bathymetry Data Index, Update cell size ranges for the Bathymetry Data Index, or Update statistics for the Bathymetry Data Index (requires cell size ranges) parameters could speed up processing, but it also means you must run Diagnose BIS if an error occurs.
  • If the Allow datasets defined using a different BIS workspace to be added here parameter is checked, this tool will allow .bdprops files defined using a different BIS workspace to be added to the BIS workspace defined in the tool, as long as the BIS workspaces have matching extended metadata and collection metadata schemas.

语法

arcpy.bathymetry.AddBathymetry(bis_workspace, in_files, {allow_different_bis}, {ignore_errors}, {update_bdi_overviews}, {update_bdi_cell_sizes}, {update_bdi_stats})
参数说明数据类型
bis_workspace

The Bathymetric Information System (BIS) to which the input datasets should be added. This parameter accepts any geodatabase (.gdb) or enterprise database connection file (.sde) that has been registered as a BIS with the latest version.

Workspace
in_files
[in_files,...]

The input bathymetry dataset properties (.bdprops) files that contain information on the bathymetry datasets to be added to the BIS geodatabase. This parameter accepts one or more files.

File
allow_different_bis
(可选)

Indicates whether the tool should accept bathymetry dataset properties files that were generated using a different BIS geodatabase than the one currently selected in the tool. Turning off this parameter could speed processing, but it also means you must run Diagnose BIS if an error occurs.

  • ALLOW_DIFFERENT_BIS —The tool allows you to use datasets from a different BIS workspace.
  • NOT_ALLOW_DIFFERENT_BIS —The tool does not allow you to use datasets from a different BIS workspace. This is the default.
Boolean
ignore_errors
(可选)

Indicates whether the tool should ignore failing datasets and continue adding the remaining datasets to the BIS geodatabase.

  • IGNORE_ERRORS —Continue adding datasets even if one or more causes an error.
  • NOT_IGNORE_ERRORS —Stops processing if a dataset causes an error. This is the default.
Boolean
update_bdi_overviews
(可选)

Indicates whether the tool should update overviews for the Bathymetry Data Index when adding the datasets to the BIS geodatabase. Turning off this parameter could speed processing, but it also means you must run Diagnose BIS if an error occurs.

  • UPDATE_BDI_OVERVIEWS —The tool updates overviews for the BDI when adding datasets. This is the default.
  • NOT_UPDATE_BDI_OVERVIEWS —The tool does not update overviews for the BDI when adding datasets.
Boolean
update_bdi_cell_sizes
(可选)

Indicates whether the tool should update cell size ranges for the Bathymetry Data Index when adding the datasets to the BIS geodatabase. Turning off this parameter could speed processing, but it also means you must run Diagnose BIS if an error occurs.

  • UPDATE_BDI_CELL_SIZES —The tool updates cell size ranges for the BDI when adding datasets. This is the default.
  • NOT_UPDATE_BDI_CELL_SIZES —The tool does not update cell size ranges for the BDI when adding datasets.
Boolean
update_bdi_stats
(可选)

Indicates whether the tool should update the statistics for the Bathymetry Data Index when adding the datasets to the BIS geodatabase. Turning off this parameter could speed processing, but it also means you must run Diagnose BIS if an error occurs.

  • UPDATE_BDI_STATS —The tool updates the statistics for the BDI when adding datasets. This is the default.
  • NOT_UPDATE_BDI_STATS —The tool does not update the statistics for the BDI when adding datasets.
Boolean

代码示例

AddBathymetry example (stand-alone script)

The following stand-alone script demonstrates how to use the AddBathymetry tool.

# Name: AddBathymetry_Example.py
# Description: Registers a few bathymetry datasets with the BIS geodatabase
# Requirements: ArcGIS Bathymetry

import arcpy

# check out the extension
arcpy.CheckOutExtension("Bathymetry")

# set up parameters
bis_workspace = r"C:/Data/BIS.gdb"
in_files = r"C:/Data/NewYork.bdprops;C:/Data/Virginia.bdprops;C:/Data/MontereyBay.bdprops"
allow_different_bis = NOT_ALLOW_DIFFERENT_BIS
ignore_errors = NOT_IGNORE_ERRORS
update_bdi_overviews = NOT_UPDATE_BDI_OVERVIEWS
update_bdi_cell_sizes = NOT_UPDATE_BDI_CELL_SIZES
update_bdi_stats = NOT_UPDATE_BDI_STATS

# execute the tool
arcpy.AddBathymetry_bathymetry(bis_workspace, in_files, allow_different_bis, ignore_errors, update_bdi_overviews, update_bdi_cell_sizes, update_bdi_stats)

环境

  • 当前工作空间

许可信息

  • Basic: 否
  • Standard: 需要 ArcGIS Bathymetry
  • Advanced: 需要 ArcGIS Bathymetry

相关主题

  • An overview of the Data Registration toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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