AddClassedPostMap

The AddClassedPostMap method is superseded by AddClassedPostMap2. Please consider using the more recent version. AddClassedPostMap has been retained for backward compatibility.

AddClassedPostMap adds a new classed post map. Returns a MapFrame object.

The AddClassedPostMap2 command should specifically be used instead of AddClassedPostMap, when the worksheet being loaded is an Excel file where the sheet name needs to be specified. It can also be used to specify any data import options when loading a data file.

Syntax

object.AddClassedPostMap( DataFileName, xCol, yCol, zCol, LabCol )

Parameter

Type

Required/

Optional

Default

Description

DataFileName

String

Required

This provides the name of the XYZ data file.

xCol

Long

Optional

1 (column A)

This provides the column containing X coordinates.

yCol

Long

Optional

2 (column B)

This provides the column containing Y coordinates.

zCol

Long

Optional

3 (column C)

This provides the column containing the class information.

LabCol

Long

Optional

This provides the column containing labels.

Remarks

Default=0 means use the default column. xCol defaults to column A , yCol defaults to column B, and zCol defaults to column C. LabCol defaults to none. Worksheet column numbers begin with 1. This means that column A = 1, column B = 2, etc.

Example 1

This example demonstrates how to create a map coordinate system named MapFrame followed by its corresponding classed post map named ClassedPostLayer from the data file named demogrid.dat.

Dim MapFrame As Object

Set MapFrame = Shapes.AddClassedPostMap(DataFileName:=SurferApp.Path+"\Samples\demogrid.dat")

Dim ClassedPostLayer As Object

Set ClassedPostLayer = MapFrame.Overlays(1)

Example 2

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

Used by: Shapes collection