Hi Josh,

The UNION layer doen't remove the source layers it refers to, so those would
be displayed in the legend as well. Would this provide the expected result
even so?

Best regards,

Tamas



2011/5/15 Josh Hevenor <jheve...@rogers.com>

>  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 <jheve...@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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to