The CreateHatchMap method creates a hatch map. Hatch map properties are edited through the returned HatchMap object.
Syntax
object.CreateHatchMap( BoundaryFileName, DataFileName, DataTableName, BoundaryFileOptions, PIDCol, VarCol, NumClasses, NoData, AllOther )
Parameter |
Type |
Description |
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; primary ID column, column A equals 1 |
VarCol |
Integer |
optional; variable column, column A equals 1 |
NumClasses |
Integer |
optional; number of classes |
NoData |
Boolean |
optional; true to include "no data" class |
AllOther |
Boolean |
optional; true to include "all other" class |
Example
This example creates a hatch map of Colorado.
Sub main
'Creates an instance of the MapViewer Application object
'and assigns it to the variable named "mvApp"
Set mvApp = CreateObject("MapViewer.Application")
'Makes the application main window visible
mvApp.Visible = True
'Assigns the location of the samples folder to the variable " InPath"
InPath$ = mvApp.ApplicationFolder + " samples\"
'Creates a map document object, and assigns it to the variable named "Plot"
Set Plot = mvApp.Documents.Add(DocType:=mvDocPlot)
'Creates a hatch map object and assigns it to the variable named "HatchMap"
Set HatchMap = Plot.CreateHatchMap( BoundaryFileName:= InPath$ + _
"co2010.gsb", DataFileName:= InPath$ + "co2010.dat", PIDCol:=1, VarCol:=5, _
NumClasses:=4)
End sub
Used by: PlotDocument object