[Qgis-developer] set mapunitsperpixel
Tim Sutton
tim at linfiniti.com
Mon Nov 24 01:46:36 EST 2008
Hi
On Sun, 2008-11-23 at 23:10 +0100, Martin Dobias wrote:
> 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.
+1
Regards
Tim
>
> Martin
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Tim Sutton - QGIS Project Steering Committee Member (Release Manager)
==============================================
Visit http://linfiniti.com to find out about:
* QGIS programming services
* Mapserver and PostGIS based hosting plans
* FOSS Consulting & Support Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
==============================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20081124/08fe1358/attachment.bin
More information about the Qgis-developer
mailing list