获得 Maritime Charting 许可后可用。
描述
Imports an S-57 file into an ArcGIS Maritime geodatabase. Sources that can be imported include Electronic Navigational Chart (ENC), Additional Military layers (AML), and Inland Electronic Navigational Chart (IENC).
使用方法
A New Edition (EN) base file can be imported.
Multiple Revision (ER) files, also known as updates, must be imported at the same time as the base file. Individual ER files cannot be imported at a later time.
The Target Workspace parameter must contain a Maritime schema.
提示:
Choose one of the Maritime workspace .xml files to create your Maritime database: NAUTICAL_ENC_TEMPLATE_GX_EXTCLSID.xml or NAUTICAL_NIS_TEMPLATE_GX_EXTCLSID.xml. These files are located in the <install location>\Resources\Maritime folder. The NAUTICAL_ENC_TEMPLATE_GX_EXTCLSID.xml file contains the geodatabase topology.
It is recommended that you import to an edit version when using an enterprise geodatabase.
语法
ImportS57ToGeodatabase(in_base_cell, target_workspace, {in_update_cells}, {in_product_config})
参数 | 说明 | 数据类型 |
in_base_cell | The base cell file (*.000). | File |
target_workspace | The workspace where all the objects will be written. | Workspace |
in_update_cells [in_update_cells,...] (可选) | Updates cell files (*.001 - *.999). | File |
in_product_config (可选) | The product configuration file to import. | File |
派生输出
名称 | 说明 | 数据类型 |
output_workspace | This is similar to the Target Workspace. | Workspace |
代码示例
The following code sample demonstrates how to import an S-57 file.
# Import arcpy module
import arcpy
# Tool variables
base_cell = r"C:\Data\Import\US1AK90M\US1AK90M.000"
target_workspace = r"C:\Data\Import\NIS_1.gdb"
update_cells = [r"C:\Data\Import\US1AK90M\US1AK90M.001", r"C:\Data\Import\US1AK90M\US1AK90M.002"]
product_config = r"C:\Data\Import\NIS_Product_custom.xml"
# Execute the tool
arcpy.maritime.ImportS57ToGeodatabase(base_cell, target_workspace, update_cells, product_config)
许可信息
- Basic: 否
- Standard: 需要 ArcGIS Maritime
- Advanced: 需要 ArcGIS Maritime