ApplySymbologyClassedSymbols

ApplySymbologyClassedSymbols method specifies the attributes used to define the symbology's classed symbols by bin in the VectorBaseLayer object and displays features that do not have an attribute value in the layer.

Syntax

object.ApplySymbologyClassedSymbols( AttributeField, ShowMissingValues, ClassMethod, Count, ShowAllOthers, ReverseSymbolOrder, SameClassSymbols, SymbolSet, SymbolIndex, MinimumSize, MaximumSize, ScalingMethod, FillColorMethod, FillColor, FillOpacity, LineColorMethod, LineColor, LineOpacity )

Parameter

Type

Default

Description

AttributeField

String   required

ShowMissingValues

Boolean True optional

ClassMethod

SrfSymBinMethod

 

optional

Count

Integer

 

optional

ShowAllOthers

Boolean

 

optional

ReverseSymbolOrder

 

 

optional

SameClassSymbols

Boolean True If True, SymbolSet, SymbolIndex, FillColor, FillColorMethod, FillOpacity, LineColor, LineColorMethod, and LineOpacity are set. If False, symbols are set through classes.

SymbolSet

String

 

optional

SymbolIndex

Integer

 

optional

Minimum Size

Double

 

optional

MaximumSize

Double

 

optional

ScalingMethod

SrfSymUnSymbolsScalingMethod

 

optional

FillColorMethod

SrfSymSymbolsColorMethod

 

optional

FillColor

srfColor

 

optional, FillColorMethod must be set

FillOpacity

Integer

 

optional, FillColorMethod must be set

LineColorMethod

SrfSymSymbolsColorMethod

 

optional

LineColor

srfColor

 

option, LineColorMethod must be set

LineOpacity

Integer

 

optional, LineColorMethod must be set

Example 1

This example defines the attributes for a class of symbols from the "FL2018.SHP" file.

Sub Main

 

Dim SurferApp As Object

Set SurferApp = GetObject(, "Surfer.Application")

SurferApp.Visible = True

 

Dim Doc As Object

Set Doc = SurferApp.Documents.Add

 

Set Map1 = Doc.Shapes.AddVectorBaseMap(SurferApp.Path+"\samples\FL2018.shp")

Set CSymbolsLayer = Map1.Overlays(1)

CSymbolsLayer.Name = "Classed Symbols - Not Same Class Symbols"

 

CSymbolsLayer.ApplySymbologyClassedSymbols(AttributeField:="MF_55-59yr", _

ShowMissingValues:=False, _

ClassMethod:=srfSymEqNum, _

Count:=5, _

ShowAllOthers:=True, _

MinimumSize:=0.15, _

MaximumSize:=0.55, _

ScalingMethod:=srfSymScalingSquareRoot, _

SameClassSymbols:=False, _

SymbolIndex:=12, _

LineColorMethod:=srfSymSColorFixed, _

LineColor:=srfColorPurple)

Example 2

This example defines the upper values of custom classes of symbols.

layer.ApplySymbologyClassedSymbols(AttributeField:="Column D", ClassMethod:=srfSymUser, Count:=4, SameClassSymbols:=False)

Set classes = layer.SymbologyClassedSymbolsBins

classes.Item(1).UpperValue = 20

classes.Item(2).UpperValue = 50

classes.Item(3).UpperValue = 100

classes.Item(4).UpperValue = 200

Used by: VectorBaseLayer object

See Also

Legend

PostLayer Object

Symbology

Vector Base Layer