CreateTerritoryMap2

 

The CreateTerritoryMap2 method creates a territory map. The territory map properties are edited through the returned TerritoryMap object. This method is the same as the CreateTerritoryMap method, except it takes the pointer to the array. VB users may want to call this method instead of CreateTerritoryMap. Note: Golden Software does not officially support VB.

 

Syntax

object.CreateTerritoryMap2( ppVarCols, BoundaryFileName, DataFileName, DataTableName, BoundaryFileOptions, PIDCol )

 

Parameter

Type

Description

ppVarCols

Array of Longs

required; array of variable column numbers, column A equals 1

BoundaryFileName

String

optional; boundary file name

DataFileName

String

optional; data file name

DataTableName

String

optional; table name if a database file is used

BoundaryFileOptions

String

optional; see Boundary File Options

PIDCol

Integer

optional; number of primary ID column, column A equals 1

 

Remarks

VB users can use ReDim to set the array size to the used size if necessary.

 

Example

    'CreateTerritoryMap2

    'Create an array for the columns to see statistics for in the territory map

    Dim variableColumns(1) As Long

    variableColumns(0) = 8 : variableColumns(1) = 9

    'Create a territory map and assign it to the variable "TerritoryMap"

    Set TerritoryMap = Plot.CreateTerritoryMap2(BoundaryFileName:=mvApp.ModuleFolder + "\Samples\CO2010.gsb", _

        DataFileName:=mvApp.ModuleFolder + "\Samples\CO2010.dat", _

        PIDCol:=1, pVarCols:=variableColumns())

 

Used by: PlotDocument object