摘要
An exchange set is a package of files that contains one catalog file and at least one S-57 dataset file (New Edition [EN] and/or Revised Edition [ER]). Once you have exported and published your S-57 data, you need to package the S-57 dataset files into a valid S-57 exchange set. This allows a mariner to view the Electronic Navigational Chart (ENC) datasets in an Electronic Chart Display and Information System (ECDIS) for shipboard navigation.
用法
The S-57 product should be validated and cleared for publishing prior to creating the exchange set.
This tool packages any referenced external files into a default ENC_ROOT directory:
- ENC: (*.txt, *.jpg, *.tif)
- IENC: (*.txt, *.jpg, *.tif, *.xml)
- AML: (*.txt, *.tif, *.pdf, *.html, *.htm, *.jpg, *.avi, *.mpg)
This tool will automatically read all external files that are present in the same folder as the S-57 product.
语法
CreateS57ExchangeSet(in_input_directory, in_output_directory, {in_international_layout})
参数 | 说明 | 数据类型 |
in_input_directory | A folder that contains at least one S-57 base cell (*.000) and optionally any of the following:
| Folder |
in_output_directory | The location of an empty folder where the ENC_ROOT folder will be written. This tool will not run if files are present in that folder. | Folder |
in_international_layout (可选) | This is the directory and folder structure of the exchange set.
| Boolean |
代码示例
CreateS57ExchangeSet example (Python window)
The following code example demonstrates how to use the CreateS57ExchangeSet tool.
# Import arcpy module
import arcpy
# Check for Nautical extension
if arcpy.CheckExtension("Nautical") == "Available":
arcpy.CheckOutExtension("Nautical")
else:
raise ex("Maritime: Charting license is unavailable.")
# Process: Create S-57 Exchange Set
print "Creating exhange set"
arcpy.CreateS57ExchangeSet_nautical(r'C:\Data\Testing',r'C:\Data\Testing\forCreateExchange',"INTERNATIONAL_FORMAT")
print "complete"
环境
许可信息
- ArcGIS Desktop Basic: 需要 Maritime Charting
- ArcGIS Desktop Standard: 需要 Maritime Charting
- ArcGIS Desktop Advanced: 需要 Maritime Charting