摘要
Converts AML (Additional Military Layers) 1.0 S-57 files to AML 2.1 standard so they can be added into ArcGIS for Maritime: Charting to edit and update. AML version 2.1 cells can also be converted to version 1.0, providing you with the capability to produce both versions from the same dataset or geodatabase.
AML is a unified range of digital geospatial data products designed to satisfy nonnavigational maritime defense requirements.
The objective of AML data is to provide information as overlays to standard charts or as defense-specific products in a single product range with no replication of information.
用法
The default path for an AML conversion file is located at C:\Program Files (x86)\ArcGIS\MaritimeCharting\Desktop10.5\Common\AMLConverter.xml.
This tool will create a reissue when updates are included for conversion.
This tool returns the LNAM of the objects that it has modified.
There are cases where a mandatory attribute is added or dropped between the AML formats. This tool will not be able to automatically populate these attributes with the appropriate values.
Depending on the version you are converting to, the following attributes will be missing from the output file and may lead to validation errors.
- VALSOU attribute (179) is a new mandatory attribute for AML 2.1 that needs to be populated with a floating-point value.
- DEPWAT attribute (20623) is an unsupported mandatory attribute for AML 2.1 that was populated with a floating-point value in 1.0.
If a feature is deleted, the converter will clean up the orphaned primitives.
The collection will be removed if only one feature is left in the collection.
语法
ConvertAMLFormat(in_base_cell, in_target_version, in_output_directory, {in_update_cells})
参数 | 说明 | 数据类型 |
in_base_cell | Base file in the S-57 AML 1.0 or 2.1 format. | File |
in_target_version |
Converts AML 1.0 S-57 files to AML 2.1, or vice versa, for editing and updating. Provides you with the capability to produce both versions from the same dataset or geodatabase. Indicates the AML version number to which the cells will be converted. | String |
in_output_directory | Directory where the converted AML file will be written. | Folder |
in_update_cells (可选) | Updates the base file in the S-57 AML data product from version 1.0 to 2.1 or from 2.1 to 1.0. This upgrade will apply formatting changes as described in the AML 1.0 or 2.1 specification. For more information on the AML 1.0 or 2.1 format and standard, consult the AML specifications. | File |
代码示例
ConvertAMLFormat example (stand-alone script)
The following code sample demonstrates how to convert an AML file.
# Import arcpy module
import arcpy
# Check for the 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
in_base_cell = "C:\Data\USE5U0AO.000"
in_target_version = '1.0'
in_output_directory = "C:\Data\Output"
in_update_cells = "C:\Data\USE5U0AO.001"
# Execute the tool
arcpy.ConvertAMLFormat_nautical(in_base_cell, in_target_version, in_output_directory,(in_update_cells))
环境
许可信息
- ArcGIS Desktop Basic: 否
- ArcGIS Desktop Standard: 否
- ArcGIS Desktop Advanced: 需要 Maritime Charting