Cluster example with groups

To create group clusters based on properties while having separate classes for each group of cluster, we use a combination of classes with their expressions and corresponding clusters with expressions.

To define which points should belong to which of the classes, this example uses the column (Classitem) “merket”. In addition, for each class an expression (Expression) and type of expression (Expression type) is defined. In this case, the type “String” is used.

The values are obtained from the column “merket”, belonging to the relevant datasets.

The following is defined: a fill color (Fill color), a stroke color (Outline color) and -width (Width), the size of the symbol (Symbol size), plus which symbol (Symbol).

Ellipse is defined as criteria for clustering (Region), and the distance between the objects/points is set to be a maximum of 50 px (Max distance). For grouping objects into clusters, an expression corresponding to the classes is being used. In this example the expression used is ” ‘[merket]’ = ‘h'” (Group), and the expression type is “Expression” (Group type).

A label for displaying the number of objects/points comprised by each cluster is also defined, by selecting an appearance (Label style) and specifying an expression for what is to be printed – in this example [Cluster:FeatureCount] is used.

Example of class 1 and cluster 1:
cluster_group_01

Example of class 2 and cluster 2:

cluster_group_02

Example of legend

cluster_group_legend

Example, in map

cluster_group_karteksempel

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.