[mapserver-users] Re: Hiding overviews

Armin Burger armin.burger at gmx.net
Fri Mar 21 11:06:51 PDT 2008


Jukka

I was working a bit on this issue since we face the same problem. If you 
don't mind using Python MapScript instead of the Mapserver CGI then you 
could try to use this Python class that uses the OWSRequest 
functionality of Mapserver/Mapscript:

http://svn.pmapper.net/repos/owspy/trunk/

It modifies the map object before the output of the GetCapabilities 
response. For a group of layers always the first one in the map file is 
used as the one visible to the clients for the capabilities. In 
addition, only the layers that have a 'ows_title' metadata tag are 
included in the response. And with an Apache rewrite rule the URL's can 
be set to look a bit nicer. Some more details are in the README file.

Armin



On 06/03/2008 09:31, Rahkonen Jukka wrote:
> Hi,
> 
> I would say that if it is not possible at the moment to make a logical WMS layer that automatically swithes between several external overviews and the original imagery through tileindex according to scale settings, then it would be very useful to have.  However, it feels so obvious demand that I would be a bit surprised if there is not such an option. Anyway, if it is missing then I will give +1 for feature request.
> 
> There seems to be an option called wms_layer_group in the layer metadata section of mapfile, but I must admid  that I do not understand what it stands for.
> 
> -Jukka Rahkonen-
> 
> 
> 
>> -----Alkuperäinen viesti-----
>> Lähettäjä: mapserver-users-bounces at lists.osgeo.org 
>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta 
>> Eichner, Andreas - SID-NLK
>> Lähetetty: 6. maaliskuuta 2008 9:26
>> Vastaanottaja: mapserver-users at lists.osgeo.org
>> Aihe: [mapserver-users] Re: Hiding overviews
>>
>>
>> Hello Jacob,
>>
>> thanks for your try but this didn't help, sorry. IMHO the 
>> problem is that there seems to be no way to declare multiple, 
>> scale dependend data sources for one layer (in a WMS sense). 
>> Since the only reason of using of overviews for me is the 
>> (nearly) scale-independent performance. But optimization is 
>> _really_ a private thing of the service. It is not of the 
>> client's interest that MapServer internally organizes 
>> overviews as multiple layers... 
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 



More information about the MapServer-users mailing list