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.

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.

Attachments (2)

tmp.rar (154.5 KB ) - added by diletant 12 years ago.
testcase shapefiles (linear features in WGS84 dec long/lat)
test.map (1.5 KB ) - added by diletant 12 years ago.

Download all attachments as: .zip

Change History (2)

by diletant, 12 years ago

Attachment: tmp.rar added

testcase shapefiles (linear features in WGS84 dec long/lat)

by diletant, 12 years ago

Attachment: test.map added
Note: See TracTickets for help on using tickets.