[Qgis-developer] set mapunitsperpixel

Martin Dobias wonder.sk at gmail.com
Sun Nov 23 17:10:59 EST 2008

On Sun, Nov 23, 2008 at 9:51 PM, Hugentobler  Marco
<marco.hugentobler at karto.baug.ethz.ch> wrote:
>>Another question: in the python console if I do a scale(1), why is the
>>map zooming in and out? Shouldn't the bbox stay the same with a 1?
> In QgsMapCanvas, C++, there are two methods, one zoom(bool) and one zoom(double). In the python bindings, there is only zoom(bool), so zoom(1) means true (zoom in).

Ouch! That's bad. If nobody ojbect, I'll change them to zoomIn(),
zoomOut() and zoomByFactor(double) to avoid this ambiguity.


More information about the Qgis-developer mailing list