CreateTerritoryMap

 

The CreateTerritoryMap method creates a territory map. The territory map properties are edited through the returned TerritoryMap object.

 

Syntax

object.CreateTerritoryMap( pVarCols, BoundaryFileName, DataFileName, DataTableName, BoundaryFileOptions, PIDCol )

 

Parameter

Type

Description

pVarCols

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 or use CreateTerritoryMap2.

 

Example

    'CreateTerritoryMap

    '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.CreateTerritoryMap(BoundaryFileName:=mvApp.ModuleFolder + "\Samples\CO2010.gsb", _

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

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

 

Used by: PlotDocument object