AddVectorBaseMap
AddVectorBaseMap adds a new base (vector) map. Returns a MapFrame object. The AddVectorBaseMap method creates a base (vector) layer. To create a base map from a raster image, use AddRasterBaseMap.
Syntax
object. AddVectorBaseMap( ImportFileName, ImportOptions )
Parameter |
Type |
Default |
Description |
ImportFileName |
String |
required; It provides the path and file name including the file extension. An error is returned if a raster image is specified. |
|
ImportOptions |
String |
"" |
optional; It provides the import options string. See below for specific options for the various file types. |
Remarks
ImportFileName must include a file extension. See the following links for more details on ImportOptions.
Extension |
File Type |
BLN |
|
BNA |
|
DICOM3 |
|
DDF SDTS |
|
DLG USGS |
|
DXF |
|
E00 |
|
EMF |
|
GSB |
|
GSI |
|
MIF |
|
|
Adobe Portable Document Format [.PDF] |
PLT |
|
PLY |
Stanford [.PLY] |
SHP |
|
VTK |
Visualization Toolkit [.VTK] |
WMF |
Example 1
This example demonstrates how to create a map coordinate system named MapFrame followed by its corresponding base map named BaseLayer from the graphic file named ca.gsb.
'declare MapFrame object and create a new base map
MapFrame
MapFrame = Shapes.AddVectorBaseMap(ImportFileName:=SurferApp+)
Dim VectorBaseLayer As Object
Set VectorBaseLayer = MapFrame.Overlays(1)
Example 2
This example demonstrates how to create a base map, specifying file import options.
'create a new base map
Plot.Shapes.AddVectorBaseMap(ImportFileName:=SurferApp.Path+"\Samples\CO2010.GSB", _
ImportOptions:="AreasToCurves=1")
Example 3
This script displays all the methods and properties in the Shapes collection.
Used by: Shapes collection