Import VPF To Geodatabase (Maritime)

Available with ArcGIS Maritime license.

Summary

Imports Vector Product Format (VPF) data in Digital Nautical Chart (DNC) and Tactical Ocean Data (TOD) formats into an ArcGIS Maritime geodatabase. Sources that can be imported include DNC and TOD0, TOD2, and TOD4.

Usage

  • VPF data can be imported into either an empty template geodatabase or an existing geodatabase with VPF data.

  • Data can be imported from a VPF workspace folder. A workspace folder is the directory containing the library attribute table (LAT).

  • Notes can be imported for DNC and TOD data.

Parameters

LabelExplanationData Type
Input VPF Features

The VPF data to be imported into the geodatabase from a folder that contains one or more libraries. Point, line, polygon, and Ecrtext annotation features can be imported.

Folder
Target Workspace

The geodatabase to which the VPF data will be imported. This can be an empty template or existing geodatabase.

Workspace

Derived Output

LabelExplanationData Type
Output Geodatabase

The updated Target Workspace value.

Workspace

arcpy.maritime.ImportVPFToGeodatabase(in_vpf_features, target_workspace)
NameExplanationData Type
in_vpf_features
[in_vpf_features,...]

The VPF data to be imported into the geodatabase from a folder that contains one or more libraries. Point, line, polygon, and Ecrtext annotation features can be imported.

Folder
target_workspace

The geodatabase to which the VPF data will be imported. This can be an empty template or existing geodatabase.

Workspace

Derived Output

NameExplanationData Type
output_workspace

The updated Target Workspace value.

Workspace

Code sample

ImportVPFToGeodatabase example (stand-alone script)

The following code sample demonstrates how to import VPF data.

# Import system modules
import arcpy

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

# Set local variables
in_vpf_features = r'C:\Data\h1234567\dnc12'
target_workspace = r'C:\Data\Import\h1234567.gdb'

# Call the ImportVPFToGeodatabase tool to <import Vector Product Format (VPF) into a geodatabase>
arcpy.maritime.ImportVPFToGeodatabase(in_vpf_features, target_workspace)

# 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