[Qgis-developer] scale dependent visibility and fixed scales

Larry Shaffer larrys at dakotacarto.com
Thu Aug 16 16:33:18 PDT 2012


Hi,

On Thu, Aug 16, 2012 at 7:40 AM, kimaidou <kimaidou at gmail.com> wrote:
> Hi all
>
> I totally agree scale limits should be included. I usually need to set 51000
> or 49999 so that exact 50k is taken into account for respective max / min
> scales.
> Including the bounds will be more logic in my opinion.

I concur. Do you mean like this:

http://dl.dropbox.com/u/4058089/qgis/scale-boundaries-included_patch.diff

Those were the first two I could find, there are probably others.

I believe this is how the PAL labeling engine [0] already handles
this, and it's how my recent data defined scale-visibility for labels
works [1].

[0] https://github.com/qgis/Quantum-GIS/blob/master/src/core/pal/layer.cpp#L132
[1] https://github.com/qgis/Quantum-GIS/blob/master/src/core/qgspallabeling.cpp#L516

Regards,

Larry

> Cheers
> Michael
>
> 2012/8/16 Marco Bernasocchi <marco at bernawebdesign.ch>
>>
>> Hi all, today I was plaing around with some swiss maps (LK25 and LK50) I
>> wanted to have LK50 (national map 1:50000) visible only from scale
>> 1:50000 and if it is zoomed in then I want to see LK25.
>>
>> So I set the maps to be scale dependent visible as here:
>> LK25 min:0 Max 50000
>> LK50 min: 50000 Max 1000000000
>>
>> the concept works but there is a detail (matter of changing a < to <= or
>> so) that I think it is not super intuitive.
>> If I select the fixed scale of 1:50000 then onlx LK25 is shown. I would
>> expect either both or only LK50 to be visible.
>> what do think?
>>
>> ciao
>> --
>> Marco Bernasocchi
>> http://opengis.ch
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>


More information about the Qgis-developer mailing list