Summary
Parses log files produced by Validate S-57 File tool and third-party validation software against S-58 (recommended ENC validation checks). Critical errors and warnings are imported as records in a Data Reviewer table.
Usage
Validation log files generated by Esri (.S58), 7Cs version 3.4 (.ANL), and dKart version 6.x (.log) are parsed.
Coordinate system of the Data Reviewer workspace feature dataset should match the coordinate system of the production database.
A new Data Reviewer session is created each time the tool is run.
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.
If the Data Reviewer workspace already has sessions, the previous session will be compared to the current one being created by the tool. Thus, records marked as exceptions in the previous reviewer session will be carried into the current reviewer session also as exceptions.
This geoprocessing tool uses one S-57 product per Data Reviewer workspace.
Syntax
ParseS58LogFile(in_s58_log_file, in_s57_file, in_production_database_workspace, in_reviewer_workspace, {in_update_cells})
Parameter | Explanation | Data Type |
in_s58_log_file | The S-58 log file that contains validation errors. It can be *.S58 or *.ANL. Support for dKart inspector log files is limited to Log File format (*.log). | File |
in_s57_file | The base file in S-57 format and its product that is validated. The name of the ENC cell referenced in the S-57 File parameter must match the name of the ENC cell referenced in the validation log file. | File |
in_production_database_workspace | The workspace that you want to validate and correct. This workspace contains the data used to generate the S-57 format file. | Workspace |
in_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 created for each ENC product. | Workspace |
in_update_cells [in_update_cells,...] (Optional) | This is the update to a base file in the S-57 format. | File |
Code sample
ParseS58LogFile example (Python window)
The following Python window script demonstrates how to use the ParseS58LogFile tool.
# Import arcpy module
import arcpy
#Variables
US4CN22M_S58 = "C:\\Data\\checks\\test_data\\US4CN22M\\US4CN22M.S58"
US4CN22M_000 = "C:\\Data\\checks\\test_data\\US4CN22M\\US4CN22M.000"
NIS = "C:\\Data\\checks\\test_data\\NIS_test.gdb"
Reviewer = "C:\\Data\\checks\\test_data\\Reviewer.gdb"
# Process: Parse S-58 Log File
arcpy.ParseS58LogFile_nautical(US4CN22M_S58, US4CN22M_000, NIS, Reviewer, "")
Environments
Licensing information
- ArcGIS Desktop Basic: Requires Maritime Charting
- ArcGIS Desktop Standard: Requires Maritime Charting
- ArcGIS Desktop Advanced: Requires Maritime Charting