概要
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_Shapefile | Shapefile | |
Sample_ENC | File | |
S_58_Log_File | File |
コードのサンプル
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