Hi,

Both systems should work. First layer in the mapfile is rendered first so it 
goes on the bottom and the same should happen with WMS layers. A few weeks ago 
we learned that layers set to STATUS DEFAULT do not respect any other rules and 
they are always rendered first.  Do you have such ones? If yes, try turning 
them into STATUS ON.  If that does not have an effect please mail us the whole 
layer blocks for those two.

You should be able to see that layer order does have an effect by sending the 
following GetMaps with a browser.

http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=659&HEIGHT=534&LAYERS=default,POI_pub_restaurant&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=227718.18080836372,7007391.918564562,229420.66496860533,7008771.473255865&SRS=EPSG:3067&STYLES=

http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=659&HEIGHT=534&LAYERS=POI_pub_restaurant,default&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=227718.18080836372,7007391.918564562,229420.66496860533,7008771.473255865&SRS=EPSG:3067&STYLES=

-Jukka Rahkonen-
________________________________________
 Daniel Degasperi wrote:


> Hi,
>I've tried several combinations of the order of my LAYERS in the WMS
request.
  - changed the order in LAYERS parameter
  - changed the order in the mapfile

but still, the polygon layer is drawn at the top of my map and the point
layer at the bottom.

I've tried the request with MapServer 5.6.7 and MapServer 6.0.1; WMS
1.1.1 & WMS 1.3.0.

Requests:
[1]
/cgi-bin/mapserv6?map=map-ms6.map&EXCEPTIONS=inimage&FORMAT=image/png&TRANSPARENT=false&LAYERS=g_05.s2,g_play_label.play_label&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A26591&BBOX=1515109.311936,5033336.8146348,1515261.7333042,5033476.4274846&WIDTH=1428&HEIGHT=1308

[2]
/cgi-bin/mapserv6?map=map-ms6.map&EXCEPTIONS=inimage&FORMAT=image/png&TRANSPARENT=false&LAYERS=g_play_label.play_label,g_05.s2&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A26591&BBOX=1515109.311936,5033336.8146348,1515261.7333042,5033476.4274846&WIDTH=1428&HEIGHT=1308

For each request I've got the same output, see screenshot.

Am I doing something wrong?

Best regards,
Daniel

--
Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to