[mapserver-users] Question on rfc 86
Richard Greenwood
richard.greenwood at gmail.com
Sun May 15 12:49:44 PDT 2011
As Jukka suggests, use GROUP, but only provide a NAME for the one
class that you want to have displayed in your legend.
HTH,
Rich
On Sun, May 15, 2011 at 4:10 AM, Rahkonen Jukka
<Jukka.Rahkonen at mmmtike.fi> wrote:
> Hi,
>
> Have you tried GROUP?
>
> LAYER
> GROUP "group_layer"
> NAME "level_1"
> STATUS ON
> TILEINDEX "d:/data/...."
> MAXSCALEDENOM 14000
> ......
> LAYER
> GROUP "group_layer"
> NAME "level_2"
> STATUS ON
> TILEINDEX "d:/data/....."
> MINSCALEDENOM 14000
> MAXSCALEDENOM 100000
>
> WMS clients will show all the layers in a tree with level_1 and level_2 as
> members of group_layer. However, all your users need to do is to add
> group_layer into their WMS client.
>
> -Jukka Rahkonen-
>
> ________________________________
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Josh Hevenor
> Lähetetty: 15. toukokuuta 2011 5:02
> Vastaanottaja: Tamas Szekeres
> Kopio: mapserver-users at lists.osgeo.org
> Aihe: Re: [mapserver-users] Question on rfc 86
>
> Thanks Tamas,
>
> The legend is custom build by mapscript and it's a feature of the app that
> it shows the out of scale layers. I could customize it to group layers that
> are essentially the same thing if there was a need for it, but I figured I'd
> see if this new feature would do that for me for free when I upgrade to ms6.
>
> If the UNION layer respected the source layers {min|max}scaledenom settings
> that would work for me. Are there any other ways to have a single layer
> provide more detail when zoomed in? Just curious.
>
> Josh
>
> On 5/14/2011 3:21 PM, Tamas Szekeres wrote:
>
> Josh,
>
> The union layer always retrieve all features from the source layers
> regardless of their visibility. This is because the source layers are hidden
> in most cases (STATUS OFF) to avoid the duplication of the features drawn.
> However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could indeed
> be taken into account when accessing the source layers, by using a minor
> change.
>
> BTW: How the legend is drawn in your case? As far as I know mapserver draws
> only the layers in the scale range by default.
>
> Best regards,
>
> Tamas
>
>
>
> 2011/5/14 Josh Hevenor <jhevenor at rogers.com>
>>
>> This may or may not be relevant but reading RFC 68 got me wondering.
>>
>> I have an application that has shape file data for lakes. There are
>> different shapefiles for data with higher accuracy that are used with
>> scale ranges so that only one is drawn at a time. Specifically
>> something like lakes_1_1m, lakes_1_250k, lakes_1_50k.
>>
>> I'm really looking for a way to show one LAKES layer in the application
>> legend instead of 3 layers, two of which are always out of scale. Can or
>> should I use a UNION layer to connect these layers? What other approach
>> should I consider?
>>
>> Thanks for the advice,
>>
>> Josh
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.449 / Virus Database: 271.1.1/3637 - Release Date: 05/14/11
> 06:34:00
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
More information about the MapServer-users
mailing list