<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi, I am trying to define multiple styles on mapserver 5.0.3. I have
tried with the following configuration on my layer:<br>
<big><br>
</big><small> CLASS</small><big><br>
</big><small> NAME "2D"</small><big><br>
</big><small> GROUP "2D"</small><big><br>
</big><small> STYLE </small><big><br>
</big><small> SYMBOL "2D"</small><big><br>
</big><small> MINSIZE 8</small><big><br>
</big><small> MAXSIZE 16</small><big><br>
</big><small> END</small><big><br>
</big><small> END</small><big><br>
</big><small> CLASS</small><big><br>
</big><small> NAME "3D"</small><big><br>
</big><small> GROUP "3D"</small><big><br>
</big><small> STYLE </small><big><br>
</big><small> SYMBOL "3D"</small><big><br>
</big><small> MINSIZE 8</small><big><br>
</big><small> MAXSIZE 16</small><big><br>
</big><small> END</small><big><br>
</big><small> END</small><big><br>
<br>
</big><small> ....</small><big><br>
</big><small> METADATA</small><big><br>
</big><small> ...</small><big><br>
</big><small> "wms_style" "2D,3D"</small><big><br>
</big><small> END</small><br>
<br>
This configuration works on mapserver 5.6.1 but it does not on
5.0.3. When I call by getMap request with the same configuration,
mapserver 5.0.3 does not recognize the GROUP label, and it return<i><b>
loadClass(): Unknown identifier. Parsing error near (GROUP)</b>.</i>
<br>
However if I comment the GROUP line,on a getMap request I obtain the
following tile : <b>msWMSLoadGetMapParams(): WMS server error.
Invalid style (3D). Mapserver supports only default styles and is
expecting an empty strings for the STYLES : STYLES= or STYLES=,,,
or using keyword default STYKES=default,default</b><br>
<i><br>
</i>I must say that I have tried to use CLASSGROUP object before the
CLASS definition but neither of the mapserver versions recognized
it.<br>
<br>
One more thing. I do not know if it can be relevant but there are a
little bit difference on the capabilities responses for both
versions of mapserver. These are the following:<br>
<br>
<b>Mapserver 5.6.1</b><br>
<br>
<small><Style><br>
<Name>2D</Name><br>
<Title>2D</Title><br>
<LegendURL width="89" height="30"><br>
<Format>image/png</Format><br>
<OnlineResource xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://localhost:80/cgi-bin/mapserv/mapserv?map=/var/www/test.map&version=1.1.0&service=WMS&request=GetLegendGraphic&layer=hotels&format=image/png&STYLE=2D">"http://localhost:80/cgi-bin/mapserv/mapserv?map=/var/www/test.map&version=1.1.0&service=WMS&request=GetLegendGraphic&layer=hotels&format=image/png&STYLE=2D"</a>/><br>
</LegendURL><br>
</Style><br>
<Style><br>
<Name>3D</Name><br>
<Title>3D</Title><br>
<LegendURL width="89" height="30"><br>
<Format>image/png</Format><br>
<OnlineResource xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://localhost:80/cgi-bin/mapserv/mapserv?map=/var/www/test.map&version=1.1.0&service=WMS&request=GetLegendGraphic&layer=hotels&format=image/png&STYLE=3D">"http://localhost:80/cgi-bin/mapserv/mapserv?map=/var/www/test.map&version=1.1.0&service=WMS&request=GetLegendGraphic&layer=hotels&format=image/png&STYLE=3D"</a>/><br>
</LegendURL><br>
</Style></small><br>
<br>
<b>Mapserver 5.0.3<br>
<br>
</b><small><Style><br>
<Name>2D,3D</Name><br>
<Title>2D,3D</Title><br>
<LegendURL width="25" height="20"><br>
<Format>image/png</Format><br>
<OnlineResource xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://localhost:80/cgi-bin/mapserv/mapserv?map=/var/www/test.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hotels&format=image/png">"http://localhost:80/cgi-bin/mapserv/mapserv?map=/var/www/test.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hotels&format=image/png"</a>/><br>
</LegendURL><br>
</Style></small><br>
<br>
<i><br>
Somebody happen to know where can be the problem? How can I
configure my mapfile to allow differents styles to the same layer?
<br>
<br>
Thanks in advance,<br>
<br>
</i>
</body>
</html>