-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathclusters.map
More file actions
87 lines (80 loc) · 2.12 KB
/
Copy pathclusters.map
File metadata and controls
87 lines (80 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
MAP
NAME "Clusters"
EXTENT 26.668678 58.339241 26.796582 58.40941
UNITS DD
SIZE 800 600
PROJECTION
"epsg:4326"
END
FONTSET "data/fonts/fontset.txt"
WEB
IMAGEPATH "/tmp/mapserver-data/"
METADATA
"ows_enable_request" "*"
"ows_srs" "EPSG:4326 EPSG:3857"
END
END
SYMBOL
NAME "circle"
TYPE ELLIPSE
POINTS
1 1
END
FILLED TRUE
END
LAYER
NAME "trees"
STATUS OFF
TYPE POINT
CONNECTIONTYPE OGR
# cluster does not seem to work with the native FLATGEOBUF driver
# CONNECTIONTYPE FLATGEOBUF
# DATA "data/osm/natural.fgb"
CONNECTION "data/osm/natural.fgb"
CLUSTER
MAXDISTANCE 20
REGION "ellipse"
END
# LABELITEM "Cluster_FeatureCount"
# PROCESSING "CLUSTER_ALGORITHM=SIMPLE"
# PROCESSING "CLUSTER_GET_ALL_SHAPES=OFF"
# PROCESSING "CLUSTER_KEEP_LOCATIONS=OFF"
CLASSITEM "Cluster_FeatureCount"
# class for clustered features
CLASS
EXPRESSION ("[Cluster_FeatureCount]" != "1")
STYLE
SIZE 30
# In MapServer 8.2 we can use an expression for SIZE
# SIZE ([Cluster_FeatureCount] / 3)
SYMBOL "circle"
COLOR "#4A993A"
END
LABEL
FONT "LiberationSans"
TEXT "[Cluster_FeatureCount]"
TYPE TRUETYPE
SIZE 12
COLOR 255 255 255
ALIGN CENTER
FORCE TRUE # otherwise numbers can disappear
END
END
# add a class for non-clustered features
CLASS
STYLE
SIZE 20
SYMBOL "circle"
COLOR "#4A993A"
END
LABEL
FONT "LiberationSans"
TEXT "1"
TYPE TRUETYPE
SIZE 10
COLOR 255 255 255
ALIGN CENTER
END
END
END
END