Hi, 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*. I missed that !
Thanks to the dev who corrected the old behaviour. Michael 2012/8/17 Larry Shaffer <lar...@dakotacarto.com> > On Thu, Aug 16, 2012 at 5:33 PM, Larry Shaffer <lar...@dakotacarto.com> > wrote: > > Hi, > > > > On Thu, Aug 16, 2012 at 7:40 AM, kimaidou <kimai...@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. > > On second look, QgsRuleBasedRendererV2::Rule::isScaleOK looks like > it's already including the boundaries. (removed it from the diff) > > > 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 <ma...@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@lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer > >> > >> > >> > >> _______________________________________________ > >> Qgis-developer mailing list > >> Qgis-developer@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/qgis-developer > >> >
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer