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

Golden Software Blanking [.BLN]

BNA

Atlas Boundary [.BNA]

DICOM3

Medical Image [.DIC] [.DCM]

DDF SDTS

Topological Vector Profile [.DDF]

DLG USGS

Digital Line Graph [.DLG] [.LGO] [.LGS]

DXF

AutoCAD Drawing [.DXF]

E00

Esri ArcInfo Export Format [.E00]

EMF

Windows Enhanced Metafile [.EMF]

GSB

Golden Software Boundary [.GSB]

GSI

Golden Software Interchange File [.GSI]

MIF

MapInfo Interchange Format [.MIF]

PDF

Adobe Portable Document Format [.PDF]

PLT

Golden Software PlotCall [.PLT]

PLY

Stanford [.PLY]

SHP

Esri Shapefile [.SHP]

VTK

Visualization Toolkit [.VTK]

WMF

Windows Metafile [.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

See Also

VectorBaseLayer Object

RasterBaseLayer Object

Base Map