<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&nbsp; "sequential"<br>CLASS<br>&nbsp;&nbsp; GROUP "sequential"<br>&nbsp;&nbsp; EXPRESSION ([pixel] &lt;= 2e+15)<br>&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 237 160<br>&nbsp;&nbsp;&nbsp; END<br>END<br>CLASS<br>&nbsp;&nbsp;&nbsp; GROUP "sequential"<br>&nbsp;&nbsp;&nbsp; EXPRESSION ([pixel] &gt;2e+15 AND [pixel] &lt;= 3e+15)<br>&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 254 217 118<br>&nbsp;&nbsp;&nbsp;&nbsp; END<br>END<br>...<br>...<br>CLASSGROUP "KNMI"<br>CLASS<br>&nbsp;&nbsp; GROUP "KNMI"<br>&nbsp;&nbsp; EXPRESSION ([pixel] &lt;= 1e+15)<br>&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 161 240 119<br>&nbsp;&nbsp; END<br>END<br>CLASS<br>&nbsp;&nbsp;&nbsp; NAME&nbsp; "knmi2"<br>&nbsp;&nbsp;&nbsp; GROUP "KNMI"<br>&nbsp;&nbsp;&nbsp; EXPRESSION ([pixel] &gt;1e+15 AND [pixel] &lt;= 2e+15)<br>&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 136 238 120<br>&nbsp;&nbsp;&nbsp;&nbsp; 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>