CLASS
NAME "2D"
GROUP "2D"
STYLE
SYMBOL "2D"
MINSIZE 8
MAXSIZE 16
END
END
CLASS
NAME "3D"
GROUP "3D"
STYLE
SYMBOL "3D"
MINSIZE 8
MAXSIZE 16
END
END
....
METADATA
...
"wms_style" "2D,3D"
END
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/*loadClass():
Unknown identifier. Parsing error near (GROUP)*./
However if I comment the GROUP line,on a getMap request I obtain the
following tile : *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*
//I must say that I have tried to use CLASSGROUP object before the CLASS definition but neither of the mapserver versions recognized it.
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:
*Mapserver 5.6.1* <Style> <Name>2D</Name> <Title>2D</Title> <LegendURL width="89" height="30"> <Format>image/png</Format><OnlineResource xlink:type="simple" xlink: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"/>
</LegendURL> </Style> <Style> <Name>3D</Name> <Title>3D</Title> <LegendURL width="89" height="30"> <Format>image/png</Format><OnlineResource xlink:type="simple" xlink: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"/>
</LegendURL> </Style> *Mapserver 5.0.3 *<Style> <Name>2D,3D</Name> <Title>2D,3D</Title> <LegendURL width="25" height="20"> <Format>image/png</Format><OnlineResource xlink:type="simple" xlink: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"/>
</LegendURL> </Style> /Somebody happen to know where can be the problem? How can I configure my mapfile to allow differents styles to the same layer?
Thanks in advance, /
<<attachment: emontana.vcf>>
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
