Hi,<div><br></div><div>Larry, you are right, I just tested Qgis 1.8 with one of my projects, and indeed now Qgis displays the layer between the two bounds *included*.</div><div>I missed that !</div><div><br></div><div>Thanks to the dev who corrected the old behaviour.</div>
<div><br></div><div>Michael<br><br><div class="gmail_quote">2012/8/17 Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Aug 16, 2012 at 5:33 PM, Larry Shaffer <<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>> wrote:<br>
> Hi,<br>
><br>
> On Thu, Aug 16, 2012 at 7:40 AM, kimaidou <<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>> wrote:<br>
>> Hi all<br>
>><br>
>> I totally agree scale limits should be included. I usually need to set 51000<br>
>> or 49999 so that exact 50k is taken into account for respective max / min<br>
>> scales.<br>
>> Including the bounds will be more logic in my opinion.<br>
><br>
> I concur. Do you mean like this:<br>
><br>
> <a href="http://dl.dropbox.com/u/4058089/qgis/scale-boundaries-included_patch.diff" target="_blank">http://dl.dropbox.com/u/4058089/qgis/scale-boundaries-included_patch.diff</a><br>
><br>
> Those were the first two I could find, there are probably others.<br>
<br>
</div>On second look, QgsRuleBasedRendererV2::Rule::isScaleOK looks like<br>
it's already including the boundaries. (removed it from the diff)<br>
<div class="HOEnZb"><div class="h5"><br>
> I believe this is how the PAL labeling engine [0] already handles<br>
> this, and it's how my recent data defined scale-visibility for labels<br>
> works [1].<br>
><br>
> [0] <a href="https://github.com/qgis/Quantum-GIS/blob/master/src/core/pal/layer.cpp#L132" target="_blank">https://github.com/qgis/Quantum-GIS/blob/master/src/core/pal/layer.cpp#L132</a><br>
> [1] <a href="https://github.com/qgis/Quantum-GIS/blob/master/src/core/qgspallabeling.cpp#L516" target="_blank">https://github.com/qgis/Quantum-GIS/blob/master/src/core/qgspallabeling.cpp#L516</a><br>
><br>
> Regards,<br>
><br>
> Larry<br>
><br>
>> Cheers<br>
>> Michael<br>
>><br>
>> 2012/8/16 Marco Bernasocchi <<a href="mailto:marco@bernawebdesign.ch">marco@bernawebdesign.ch</a>><br>
>>><br>
>>> Hi all, today I was plaing around with some swiss maps (LK25 and LK50) I<br>
>>> wanted to have LK50 (national map 1:50000) visible only from scale<br>
>>> 1:50000 and if it is zoomed in then I want to see LK25.<br>
>>><br>
>>> So I set the maps to be scale dependent visible as here:<br>
>>> LK25 min:0 Max 50000<br>
>>> LK50 min: 50000 Max 1000000000<br>
>>><br>
>>> the concept works but there is a detail (matter of changing a < to <= or<br>
>>> so) that I think it is not super intuitive.<br>
>>> If I select the fixed scale of 1:50000 then onlx LK25 is shown. I would<br>
>>> expect either both or only LK50 to be visible.<br>
>>> what do think?<br>
>>><br>
>>> ciao<br>
>>> --<br>
>>> Marco Bernasocchi<br>
>>> <a href="http://opengis.ch" target="_blank">http://opengis.ch</a><br>
>>> _______________________________________________<br>
>>> Qgis-developer mailing list<br>
>>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Qgis-developer mailing list<br>
>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>><br>
</div></div></blockquote></div><br></div>