[mapserver-users] RE: [WMS] Styles not working with mode=tile

Clément MONIER Clement.MONIER at v-trafic.com
Wed Dec 21 02:56:59 PST 2011


Up !
Any hint on this issue ??

Below are exactly the 2 same map's requests : one with bbox, one with tile.
But the 2 output displays are not identical.

http://mapserver-dev/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=red_style&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&BBOX=47.99,1.40625,48.9225,2.8125&WIDTH=256&HEIGHT=256
http://mapserver-dev/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=red_style&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&tile=129+88+8&mode=tile&WIDTH=600&HEIGHT=600
You'll find mapfile & shp attached to run the same testcase.

Thanks & Regards

Clément

De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Clément MONIER
Envoyé : vendredi 16 décembre 2011 12:36
À : mapserver-users at lists.osgeo.org
Objet : [mapserver-users] [WMS] Styles not working with mode=tile

Hi,

I'm applying styles to my list of layers inside a WMS request, using the classgroup/class/group system in the mapfile.

It works fine when no "tile mode" is used (bbox instead) :
If I launch this request
http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&bbox=-35,10,52,15&WIDTH=600&HEIGHT=600
style2 is applied to layer1

But it doesn't work if the request uses tile mode :
http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&tile=0+0+0&tilemode=gmap&mode=tile&WIDTH=600&HEIGHT=600
style2 is not applied (default style is applied)

Is there a way to apply styles in tile mode ?

Thanks & Regards

Clément

ps : config
MS4W
MapServer v5.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111221/cd5e8b41/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.map
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111221/cd5e8b41/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.rar
Type: application/octet-stream
Size: 158157 bytes
Desc: tmp.rar
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111221/cd5e8b41/attachment.obj>


More information about the MapServer-users mailing list