[mapserver-users] Question on the layer order impact in a Getmap(WMS) call

Barend Köbben kobben at itc.nl
Fri Dec 4 04:42:51 EST 2009


The WMS GetMap interface standard requires layers to be drawn in order
(bottom to top) they appear in the LAYERS= statement in the request. So that
overrides the order in the MAP file...


-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253



On 03-12-09 21:59, "Martin Ouellet" <geomartino at gmail.com> wrote:

> The mapserver doc specified that the layer are drawn in their order of
> appearance in the MapFile (first layer is at the bottom, last is on top).
> Extract from: http://umn.mapserver.ch/MapServer/en/layer.htm
> 
> So I wonder why the map is different if I change the order of the layers
> (CEHQ_STATION_CEHQ_NIVEAU_NIV2 = point layer and CEHQ_BASSIN_N1_NIVEAU =
> polygon layer) in the call?
> Should Mapserver generate the map considering the layer order in the mapfile
> (bottom to top) and not with the order in the URL call?
> 
> With this call, the polygon are on top:
> http://spssoww5d.sso.msp.gouv.qc.ca/cgi-wms/adnIntranet?LAYERS=CEHQ_STATION_CE
> HQ_NIVEAU_NIV2,CEHQ_BASSIN_N1_NIVEAU&TRANSPARENT=true&FORMAT=image/png&SERVICE
> =WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_in
> image&SRS=EPSG:900913&BBOX=-8397907.6360637,5657903.782736,-7510015.1156621,61
> 29367.3731146&WIDTH=1452&HEIGHT=771
> 
> With this call, the point are on top (which I would like to have always)
> http://spssoww5d.sso.msp.gouv.qc.ca/cgi-wms/adnIntranet?LAYERS=CEHQ_BASSIN_N1_
> NIVEAU,CEHQ_STATION_CEHQ_NIVEAU_NIV2&TRANSPARENT=true&FORMAT=image/png&SERVICE
> =WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_in
> image&SRS=EPSG:900913&BBOX=-8397907.6360637,5657903.782736,-7510015.1156621,61
> 29367.3731146&WIDTH=1452&HEIGHT=771
> 
> Do I forgot something?
> 
> MartinO
> 
> 
> 
> 
> 

International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.


More information about the mapserver-users mailing list