[mapserver-dev] Possible bug found

Daniel Morissette dmorissette at mapgears.com
Thu Jan 21 09:58:13 EST 2010


Not really a bug or undocumented feature, just the way we chose to 
implement WMS.

If you do a GetCapabilities, you'll see a layer at the top level (which 
corresponds to the overall map and uses the map name) and then all 
individual mapfile layers are at the second level under that top-level 
layer. As per WMS spec, referring to any layer by name in a GetMap 
request will return that layer and all its children, so what Guillaume 
experienced is consistent according too WMS spec.

WMS requires at least 2 levels <layer> of nesting in the Capabilities 
(what we did, one global layer for the overall map, and then individual 
layers underneath). The only thing we may be missing is a way to make 
the top-level layer not-requestable by not setting a name on it.

I saw a comment from Assefa in a ticket a few days ago about adding that 
option. I just don't have the ref with me at the moment.

Daniel


Lime, Steve D (DNR) wrote:
> Wow, that's a new one on me. Perhaps a ticket to either document it or remove it could be created.
> 
> Steve
> ________________________________________
> From: mapserver-dev-bounces at lists.osgeo.org [mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Dan Little [danlittle at yahoo.com]
> Sent: Thursday, January 21, 2010 8:03 AM
> To: MapServer Dev Mailing List
> Subject: Re: [mapserver-dev] Possible bug found
> 
> If your map name is "selection" and you request "selection," MapServer believes you are requesting the entire map.  This is an "undocumented feature."
> 
> 
> ----- Original Message ----
>> From: Guillaume Sueur <no-reply at neogeo-online.net>
>> To: MapServer Dev Mailing List <mapserver-dev at lists.osgeo.org>
>> Sent: Thu, January 21, 2010 5:08:34 AM
>> Subject: [mapserver-dev] Possible bug found
>>
>> Hi,
>>
>> I've faced a strange situation where all layers of a map (turned off by
>> default) were showing when requesting a specific layer in WMS.
>> layers are :
>>     selection
>>     departement
>>     region
>>     selection_label
>>
>> when asking for selection layer, all others layer were showing. renaming
>> selection to something else and asking still for selection layer had the
>> same result, a full map.
>> The only clue I've found is that my map is named selection.Changing it
>> to whatever else solves the problem.
>> Is this conflict between map name and layer name a normal behaviour ?
>>
>> Regards,
>>
>> Guillaume
>>
>>
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 
> 
> 
> 
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev


-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-dev mailing list