Hello Vishal,
Do as follow:
CLASSITEM 'RD_5' #The column in the dataset that hold the classification
CLASS
NAME 'myclass1'
EXPRESSION '4' #if value = 4 do this style
MINSCALE 0
MAXSCALE 100000
STYLE
SYMBOL 0
SIZE 6
WIDTH 3
COLOR 249 201 139
END
END
CLASS
NAME 'myclass2'
EXPRESSION '1' #if value = 1 do this style
MINSCALE 0
MAXSCALE 300000
STYLE
SYMBOL 0
SIZE 6
WIDTH 4
COLOR 128 155 192
#ANTIALIAS TRUE
END
END
CLASS
NAME 'myclass3' #if value = 2 do this style
EXPRESSION '2'
MINSCALE 0
MAXSCALE 300000
STYLE
SYMBOL 0
SIZE 6
WIDTH 3
COLOR 128 155 192
END
END
CLASS
NAME 'myclass4' #if value = 3 do this style
EXPRESSION '3'
MINSCALE 0
MAXSCALE 150000
STYLE
SYMBOL 0
SIZE 6
WIDTH 3
COLOR 227 109 113
END
END
Vishal Nagpal schreef:
Hello everybody,
Is it possible to have multiple colors in the same layer based on the value
of the class item.
for example if I am using the humidity in soil as a factor , i would like it
to show different color for different values.
I am familiar with EXPRESSION to filter but how to use it for classifying data.
Vishal