Opened 12 years ago
#4154 new defect
[WMS] Styles not working with mode=tile
Reported by: | diletant | Owned by: | msogcbugs |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | WMS Server | Version: | 5.6 |
Severity: | normal | Keywords: | wms styles |
Cc: |
Description
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=256&HEIGHT=256 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 ?
Below are exactly the 2 same map’s requests : one with bbox, one with tile. But the 2 output displays are not identical.
You’ll find mapfile & shp attached to run the same testcase.
testcase shapefiles (linear features in WGS84 dec long/lat)