TerritoryMap Object

 

The TerritoryMap object contains the properties of a territory map. Territory maps are created with the CreateTerritoryMap method.

 

Derived from: Map object (All methods and properties of Map apply to this object.)

 

Properties

AllOthersFill Property

BgColorSpectrum

ClassMaxVal

ClassMethod

ClassMinVal

ClassUserLimitMaxVal

ClassUserLimitMinVal

ClassUserLimits

ClassVarCol

CircleOrSquareWidth

DrawType

FgColorSpectrum

FillPatAndMode

GeoSummaryAfterStats

GlobalData

IncGeoSummary

MarkObjsOutsideTerritories

NumClasses

NumTerritories

PIDCol

StatsOptions2

StdDevIncrementValue

TerritoryFill

TerritoryMethod

TerritoryName

 

Methods

AddAllStatsOptions

AddSelObjsToActiveTerritory

AssignShapeToTerritory

CombineTerritoryAreas

CreateTerritoriesFromGrids

GetTerritoryNumber

InterpolateTerritoryFills

InterpolateWithTerritoryFill

OutputTerritoryInfoToWorksheet

LoadClassFile

SaveClassFile

SaveClassInfoToDataFile

SaveTerritoryAssignments

SaveTerritoryInfoToDataFile

SelectAllObjsInActiveTerritory

SetActiveTerritory

SetClassMinMaxVals

SetClassUserLimts

 

Example

    'Create an instance of the MapViewer Application Object and assign it to the variable named "mvApp"

    Set mvApp = CreateObject("MapViewer.Application")

 

    'Make the application main window visible

    mvApp.Visible = True

 

    'Create a new plot document and assign it to the variable "Plot"

    Set Plot = mvApp.Documents.Add(DocType:=mvDocPlot)

 

    '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())