描述
Publishes or deletes S-57 export data. Products that can have their exports either published or deleted with this tool include Electronic Navigational Charts (ENC), Additional Military Layers (AML), and Inland Electronic Navigational Charts (IENC).
使用方法
This tool is designed to be used with S-57 products in the product library for ENC, AML, and IENC.
语法
arcpy.nautical.PublishS57Product(in_pl_workspace, in_product, in_publishdelete, {in_pl_owner})
参数 | 说明 | 数据类型 |
in_pl_workspace | The product library workspace containing the exports to be published or deleted. | Workspace |
in_product | The product that has an export with a pending publish or delete decision. | String |
in_publishdelete | A parameter that determines if the product has been exported and the user has a decision pending to either publish or delete the export.
| String |
in_pl_owner (可选) | Product Library schema owner name. If the user account specified in the product library workspace is not the schema owner, this parameter needs to be set. This applies only to product libraries stored in an enterprise geodatabase. | String |
代码示例
PublishS57Product example (Python window)
The following Python window script demonstrates how to use the PublishS57Product 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.")
#Tool variables
in_pl_workspace = r"C:\Data\PL.gdb"
in_product = 'Nautical::ENC::CGD11::US5OR34M'
in_pl_publishdelete = "PUBLISH"
# Execute the tool
arcpy.PublishS57Product_nautical(in_pl_workspace, in_product, in_pl_publishdelete,"")
环境
许可信息
- Basic: 需要 ArcGIS Maritime
- Standard: 需要 ArcGIS Maritime
- Advanced: 需要 ArcGIS Maritime