ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Validate Sample S-57

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

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

Usage

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

Syntax

arcpy.nautical.ValidateSampleS57(Product_Library, {Product_Library_Owner}, Product, Data_Reviewer_Workspace, Production_Database, Output_Location)
ParameterExplanationData Type
Product_Library

Product Library workspace that contains the product.

Workspace
Product_Library_Owner
(Optional)

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

Derived Output

NameExplanationData Type
S_58_ShapefileShapefile
Sample_ENCFile
S_58_Log_FileFile

Code sample

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)

Environments

  • Current Workspace

Licensing information

  • Basic: Requires ArcGIS Maritime
  • Standard: Requires ArcGIS Maritime
  • Advanced: Requires ArcGIS Maritime

Related topics

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

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal