ShapefileCategory Class Reference

Represents a set of visualization options for shapefile layer. More...

Collaboration diagram for ShapefileCategory:
Collaboration graph

Properties

ShapeDrawingOptions DrawingOptions [get, set]
 Gets or sets visualization options associated with the category. More...
 
string Expression [get, set]
 Gets or sets expression which defines shapes which belong to the category. More...
 
object MaxValue [get, set]
 Gets or sets maximum value of the value range the category covers. More...
 
object MinValue [get, set]
 Gets or sets minimum value of the value range the category covers. More...
 
string Name [get, set]
 Gets or sets the name of the category. The names must not be unique. More...
 
tkCategoryValue ValueType [get, set]
 Gets or sets value type for the category. More...
 

Detailed Description

Represents a set of visualization options for shapefile layer.

The set of options is represented by instance of ShapeDrawingOptions class which can be accessed by ShapefileCategory.DrawingOptions, while ShapefileCategory.Expression is used for mapping this options to particular shapes.

Here is a diagram for the ShapefileCategory class.

dot_inline_dotgraph_63.png

Graph description

New API 4.8:
Added in version 4.8
Examples
LinePattern.cs, MinimalDistance.cs, PointIcons.cs, SelectByDistance.cs, and SplitByAttribute.cs.

Property Documentation

◆ DrawingOptions

ShapeDrawingOptions ShapefileCategory.DrawingOptions
getset

Gets or sets visualization options associated with the category.

Examples
LinePattern.cs, PointIcons.cs, and SelectByDistance.cs.

◆ Expression

string ShapefileCategory.Expression
getset

Gets or sets expression which defines shapes which belong to the category.

Examples
MinimalDistance.cs, PointIcons.cs, and SelectByDistance.cs.

◆ MaxValue

object ShapefileCategory.MaxValue
getset

Gets or sets maximum value of the value range the category covers.

The value is used when cvRange is set as ShapefileCategory.ValueType.

New API 4.9.3:
Added in version 4.9.3

◆ MinValue

object ShapefileCategory.MinValue
getset

Gets or sets minimum value of the value range the category covers.

The value is used when either cvSingleValue, cvRange is set for ShapefileCategory.ValueType.

New API 4.9.3:
Added in version 4.9.3

◆ Name

string ShapefileCategory.Name
getset

Gets or sets the name of the category. The names must not be unique.

Examples
SplitByAttribute.cs.

◆ ValueType

tkCategoryValue ShapefileCategory.ValueType
getset

Gets or sets value type for the category.

Depending on value type either ShapefileCategory.MinValue/ShapefileCategory.MaxValue properties or ShapefileCategory.Expression are used in the calculation process. ShapefileCategories.Generate method will set cvSingleValue for unique values classification and ctRange for any interval classification. These values are faster to apply. However manual setting of ShapefileCategory.Expression property will change it to cvExpression.

New API 4.9.3:
Added in version 4.9.3