摘要
Validates an ENC file and generates an .S58 file as a result.
用法
Multiple revision files (ER), also known as updates, must be validated at the same time as the base file. Individual ERs cannot be validated at a later time.
A new edition (EN) base file can be validated.
A CATALOG (.031) file can be validated. When a CATALOG file is chosen for validation, only the S-58 checks pertaining to the Exchange Set or data structure will be run.
Outputs a shapefile and an XML of the S-58 errors discovered during the validation process.
语法
ValidateS57File(in_s57_file, in_output_directory, {in_update_cells})
参数 | 说明 | 数据类型 |
in_s57_file | Base file in the S-57 format. | File |
in_output_directory | The location where the validated S-57 file will be created. | Folder |
in_update_cells (可选) | Update to a base file in the S-57 format. | File |
代码示例
ValidateS57File (Python window)
The following Python window script demonstrates how to use the ValidateS57File tool.
# Import arcpy module
import arcpy
# Check for Nautical extension
print "Checking out Maritime extension"
arcpy.AddMessage("Checking out Maritime extension")
if arcpy.CheckExtension("Nautical") == "Available":
arcpy.CheckOutExtension("Nautical")
else:
arcpy.AddError("Maritime: Charting license is unavailable.")
# Tool variables
US3CA52M_000 = "C:\\VALIDATES57FILE\\US3CA52M.000"
ValidateS57file = "c:\\ValidateS57file"
US3CA52M_001 = "C:\\ValidateS57file\\US3CA52M.001"
# Execute the tool
arcpy.ValidateS57File_nautical(US3CA52M_000, ValidateS57file, US3CA52M_001)
环境
许可信息
- ArcGIS Desktop Basic: 需要 Maritime Charting
- ArcGIS Desktop Standard: 需要 Maritime Charting
- ArcGIS Desktop Advanced: 需要 Maritime Charting