[Qgis-user] Change Projection in Projection Properties from a Python PlugIn

Martin Dobias wonder.sk at gmail.com
Wed May 28 16:24:18 PDT 2008


On Thu, May 29, 2008 at 1:09 AM, Carson Farmer <cfarmer at uvic.ca> wrote:
> Martin, a quick question regarding this operation:
>
> If I were to setDestinationSrs, and on the fly projection was enabled, will
> this change be reflected on screen? I ask because I would like to be able to
> dynamically 're project' two vector layers on the fly during plugin
> operation, without the user dessesarily 'seeing' that this is happening, is
> this possible?

IIRC you would also need to change the extent of map canvas
(setExtent()) and then call refresh() to redraw the map.

Martin



More information about the Qgis-user mailing list