Export Geodatabase To VPF (Maritime)

摘要

Exports hydrographic data from maritime geodatabases to Vector Product Format (VPF).

使用情况

  • Source geodatabases must be within the same Region## and conform to one of the following naming patterns:

    • DNC—<Scale Category Designator><Region##><Designator>
    • Browse—Browse<Region##>
    • TOD—TOD<#><Region##><Designator>

  • The Notice to Mariners Date parameter value will populate the date as metadata in all libraries exported. Use the following format for each respective product:

    • DNC and TOD0—<2-digit week of year>/<2-digit year>
    • TOD2 and TOD4—<2-digit month of year>/<4-digit year>

  • The output location is a designated directory that creates the correct VPF file structure per Region.

  • The DNC## folder will be created containing the libraries and DHT and LAT files.

参数

标注说明数据类型
Source Geodatabase(s)

The source geodatabases that will be exported.

Workspace
Notice to Mariners Date

The Notice to Mariners date of the source geodatabases.

String
Output Location

The location where the export package will be written.

Folder

派生输出

标注说明数据类型
Output VPF Library

The exported VPF folder root.

Folder

arcpy.maritime.ExportGeodatabaseToVPF(in_source_gdb, ntm_date, out_location)
名称说明数据类型
in_source_gdb
[in_source_gdb,...]

The source geodatabases that will be exported.

Workspace
ntm_date

The Notice to Mariners date of the source geodatabases.

String
out_location

The location where the export package will be written.

Folder

派生输出

名称说明数据类型
out_vpf_folder

The exported VPF folder root.

Folder

代码示例

ExportGeodatabaseToVPF example (stand-alone script)

The following stand-alone script demonstrates how to use the ExportGeodatabaseToVPF function.

# Import system modules
import arcpy

# Check out extensions
arcpy.CheckOutExtension('nautical')

# Set local variables
in_source_gdb = r'C:\Data\a1234567.gdb'
ntm_date = r'15/21'
out_location = r'C:\Data'

# Call the ExportGeodatabaseToVPF tool to <export hydrographic data from maritime geodatabases to Vector Product Format (VPF)>
arcpy.maritime.ExportGeodatabaseToVPF(in_source_gdb, ntm_date, out_location)

# Get all messages, warnings, and errors and print the results
messages = arcpy.GetMessages(0)
warnings = arcpy.GetMessages(1)
errors = arcpy.GetMessages(2)
arcpy.AddMessage('Tool Messages: {}\nTool Warnings: {}\nTool Errors{}\n'\
                 .format(messages, warnings, errors))

# Check in extensions
arcpy.CheckInExtension('nautical')

环境

此工具不使用任何地理处理环境。

许可信息

  • Basic: 否
  • Standard: 需要 ArcGIS Maritime
  • Advanced: 需要 ArcGIS Maritime

相关主题