<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi all,<br><br>I follow the document http://mapserver.org/ogc/sld.html to set up multiple styles for raster data in map file, just like this:<br><br>CLASSGROUP "sequential"<br>CLASS<br> GROUP "sequential"<br> EXPRESSION ([pixel] <= 2e+15)<br> STYLE<br> COLOR 255 237 160<br> END<br>END<br>CLASS<br> GROUP "sequential"<br> EXPRESSION ([pixel] >2e+15 AND [pixel] <= 3e+15)<br> STYLE<br> COLOR 254 217 118<br> END<br>END<br>...<br>...<br>CLASSGROUP "KNMI"<br>CLASS<br> GROUP "KNMI"<br> EXPRESSION ([pixel] <= 1e+15)<br> STYLE<br> COLOR 161 240 119<br> END<br>END<br>CLASS<br> NAME "knmi2"<br> GROUP "KNMI"<br> EXPRESSION ([pixel] >1e+15 AND [pixel] <= 2e+15)<br> STYLE<br> COLOR 136 238 120<br> END<br>END<br><br><br>In the response of "getcapabilities", there shows two styles "sequential, KNMI" available. But when I get map using either "styles=sequential" or "styles=KNMI", the rendered image is in "sequential" style. Then, I define "KNMI" at first, and "sequential" secondly in the Map file. The rendered images are all in "KNMI" style whatever I set up "styles" in getMap request. <br><br>Is there anything wrong in my Map file? <br><br><br><br><br><br> <br /><hr />Windows LiveT Hotmail is faster and more secure than ever. <a href='http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_1:092009' target='_new'>Learn more.</a></body>
</html>