AddReliefMap

The AddReliefMap method has been deprecated. Use AddColorReliefMap instead.

AddReliefMap adds a new shaded relief map. Returns a MapFrame object.

Syntax

object.AddReliefMap( GridFileName )

Parameter

Type

Default

Description

GridFileName

String

required; This provides the path and file name of the grid file.

Example 1

This example demonstrates how to create a map coordinate system named MapFrame followed by its corresponding relief map named ReliefLayer from the grid file named "demogrid.grd."

'declare MapFrame object and create a new shaded relief map

Dim MapFrame As Object

Set MapFrame = Shapes.AddReliefMap(GridFileName:=SurferApp.Path+"\Samples\demogrid.grd")

 

'declare ReliefLayer object and set the reference to the shaded relief layer

Dim ReliefLayer As Object

Set ReliefLayer = MapFrame.Overlays(1)

Example 2

This script displays all the methods and properties in the Shapes collection.

Used by: Shapes collection

See Also

ReliefLayer Object