获得 Production Mapping 许可后可用。
摘要
Imports VPF data in VMap or DNC formats into a geodatabase. Sources that can be imported include Digital Nautical Chart (DNC), Vector Map (VMap 0, VMap 1, and VMap 2), Urban Vector Map (UVMap), Foundation Feature Data (FFD), and Vector Interim Terrain Data (VITD).
用法
VPF data can be imported into a blank or existing geodatabase with VPF data.
Data can be imported from a VPF workspace folder or library folder. A workspace folder is the directory containing the library attribute table (LAT) or the location in the Catalog tree where you can see the VPF coverages. The library folder is a child directory inside a VPF workspace containing a coverage attribute table (CAT).
If the schema doesn't exist, this tool creates a dataset based on each library that is imported and stores the individual feature classes in it.
Multiple VPF products can exist in the same geodatabase. For instance, both DNC and VMAP1 data can be stored in a single geodatabase.
Notes can be imported for DNC and FFD data.
If the annotation feature classes don't exist in the geodatabase, the tool will search the library and extract the symbol information and attempt to create the symbol collection so the symbology remains intact.
语法
VpfToGeodatabase(in_vpf_features, in_target_geodatabase, in_product, {import_notes})
参数 | 说明 | 数据类型 |
in_vpf_features [in_vpf_features,...] | The VPF data to be imported into the geodatabase from specific layers or a folder that contains one or more libraries. Point, line, and polygon features can be imported. If a folder contains multiple libraries, all of them will be imported into the same geodatabase. | Feature Layer; Folder; VPF Coverage |
in_target_geodatabase | The geodatabase to which the VPF data will be imported. This can be a new or existing geodatabase. | Workspace |
in_product | The type of VPF product that will be imported into the geodatabase.
| String |
import_notes (可选) | Indicates whether notes are imported. Notes can only be imported with DNC and FFD data.
| Boolean |
代码示例
VPFToGeodatabase example (stand-alone script)
The following stand-alone sample script demonstrates VPFToGeodatabase.
# Name: VPFToGeodatabaseExample.py
# Description: Import VMap1 data into a new file geodatabase.
# Author: Esri
# Date: February 2014
# Import arcpy module
import arcpy
# Check out Production Mapping license
arcpy.CheckOutExtension("Foundation")
# Set environment
arcpy.env.workspace="c:/data/"
# Define variables
inVPF="C:/data/VPF/v1097/noamer/lib_097:bnd/barrierl;C:/data/VPF/v1097/noamer/lib_097:bnd/coastl;C:/data/VPF/v1097/noamer/lib_097:bnd/polbnda"
inTarget="VMap_data.gdb"
# Execute VPFToGeodatabase
arcpy.VpfToGeodatabase_production(inVPF, inTarget, "VMAP1", "NO_IMPORT_NOTES")
# Check in Production Mapping license
arcpy.CheckInExtension("Foundation")
环境
许可信息
- ArcGIS Desktop Basic: 否
- ArcGIS Desktop Standard: 需要 Production Mapping
- ArcGIS Desktop Advanced: 需要 Production Mapping