Summary
Parses log files produced by the 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 files, 7Cs version 3.4 and higher (.ANL and .vld files), and dKart version 6.3.2 (.log files) are parsed.
The 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 session being created by the tool. Records marked as exceptions in the previous reviewer session will be carried into the current reviewer session as exceptions.
This geoprocessing tool uses one S-57 product per Data Reviewer workspace.
Syntax
arcpy.nautical.ParseS58LogFile(in_s58_log_file, in_s57_file, in_production_database_workspace, in_reviewer_workspace, reviewer_session, {in_update_cells})
Parameter | Explanation | Data Type |
in_s58_log_file | The S-58 log file that contains validation errors. | File |
in_s57_file | The base file in S-57 format and its validated product. The name of the ENC cell referenced in this parameter must match the name of the ENC cell referenced in the validation log file. | File |
in_production_database_workspace | The workspace 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 Data Reviewer workspace must be created for each ENC product. | Workspace |
reviewer_session | An existing Data Reviewer session. | String |
in_update_cells [in_update_cells,...] (Optional) | The base file cells in S-57 format that will be updated. | File |
Derived Output
Name | Explanation | Data Type |
parse_count | The total number of error and warning messages written to the Data Reviewer session. | Long |
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
- Basic: Requires ArcGIS Maritime
- Standard: Requires ArcGIS Maritime
- Advanced: Requires ArcGIS Maritime