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

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

Validate Sample S-57

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

描述

Validates a sample ENC product and produces three outputs: the ENC product, an S-58 log file, and a shapefile.

使用方法

  • Exports a sample S-57 product as a new edition (EN). The metadata and the product stored in the Product Library are not changed.

  • After export, the sample ENC is validated, and the output S-58 log file is parsed to a Data Reviewer workspace.

  • The Data Reviewer workspace must contain the reviewer schema. This can be created using the Enable Data Reviewer geoprocessing tool or the Reviewer Session Manager.

  • Combines and chains together three geoprocessing tools, Export Geodatabase To S-57, Validate S-57 File, and Parse S-58 Log File, in the ArcGIS Maritime toolbox to validate a sample ENC product.

语法

arcpy.nautical.ValidateSampleS57(Product_Library, {Product_Library_Owner}, Product, Data_Reviewer_Workspace, Production_Database, Output_Location)
参数说明数据类型
Product_Library

Product Library workspace that contains the product.

Workspace
Product_Library_Owner
(可选)

Product Library schema owner name.

Set this parameter if the user account specified in the Product Library workspace is not the schema owner. This applies only to product libraries stored in enterprise geodatabases.

String
Product

Name of the product you want to export. This must exist in the specified Product Library before using this tool. This is specified as Solution Name::Product Class Name::Series Name::Product.

String
Data_Reviewer_Workspace

The path to the Data Reviewer workspace where the features or table records will be written. A new Data Reviewer workspace must be made for each ENC product.

Workspace
Production_Database

The workspace that will be validated and corrected. This workspace contains the data used to generate the S-57 format file.

Workspace
Output_Location

The location where you want to write the S-57 file, shapefile, and S-58 log file.

Folder

派生输出

名称说明数据类型
S_58_ShapefileShapefile
Sample_ENCFile
S_58_Log_FileFile

代码示例

ValidateSampleS57 example (Python window)

The following Python window script demonstrates how to use the ValidateSampleS57 tool.

import arcpy

# Check for Data Reviewer extension
arcpy.CheckOutExtension("datareviewer")

# Check for Nautical extension
arcpy.CheckExtension("Nautical") 

#Tool variables
pl = r'C:\Data\checks\NAUTICAL_PRODUCT_LIBRARY_10.5.gdb'
pl_owner = ''
product = "Nautical::ENC::PythonTesting::US2WC05M"
reviewer_ws = r'C:\Data\checks\AscriptTest\Reviewer.gdb'
production_ws = r'C:\Data\checks\AscriptTest\NIS.gdb'
write_location = r'C:\Data\checks\AscriptTest'

#Create data reviewer schema
arcpy.EnableDataReviewer_Reviewer(reviewer_ws)

#Execute tool
arcpy.ValidateSampleS57_nautical(pl, pl_owner, product, reviewer_ws, production_ws, write_location)

环境

  • 当前工作空间

许可信息

  • Basic: 需要 ArcGIS Maritime
  • Standard: 需要 ArcGIS Maritime
  • Advanced: 需要 ArcGIS Maritime

相关主题

  • An overview of the Validation toolset
  • Export Geodatabase To S-57
  • Validate S-57 File
  • Parse S-58 Log File
  • 启用 Data Reviewer

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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