I have a mapfile connecting to a postgres/postgis database. To create a thematic map I can set a class item and a number of classes, for example:
CLASSITEM "aantal"
CLASS
NAME "0"
EXPRESSION ([aantal] = 0)
STYLE
COLOR 116 255 117
OUTLINECOLOR 178 178 178
END
END
CLASS
NAME "100-250"
EXPRESSION ([aantal] >= 1 AND [aantal] <= 2)
STYLE
COLOR 0 255 0
OUTLINECOLOR 178 178 178
END
END
CLASS
NAME "250-500"
EXPRESSION ([aantal] >= 3 AND [aantal] <= 10)
STYLE
COLOR 0 210 0
OUTLINECOLOR 178 178 178
END
END
However I have to do this 25 times with different attributes and different values. So I would like to know whether it is possible to do this automatically.
Similar to the option in QGIS where you can set the number of classes and mode.