Export Geodatabase To VPF (Maritime)

Summary

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

Usage

  • 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.

Parameters

LabelExplanationData Type
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

Derived Output

LabelExplanationData Type
Output VPF Library

The exported VPF folder root.

Folder

arcpy.maritime.ExportGeodatabaseToVPF(in_source_gdb, ntm_date, out_location)
NameExplanationData Type
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

Derived Output

NameExplanationData Type
out_vpf_folder

The exported VPF folder root.

Folder

Code sample

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')

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Requires ArcGIS Maritime
  • Advanced: Requires ArcGIS Maritime

Related topics