[Qgis-developer] Getting auto re-projection on Standalone
lists at linfiniti.com
Tue Mar 29 03:23:34 EDT 2011
The c++ version of what you are trying to do is something like (you
need to have already teh myCRSID variable defined):
QgsMapRenderer* myRenderer = mMapCanvas->mapRenderer();
QgsCoordinateReferenceSystem srs( myCRSID,
myRenderer->setDestinationCrs( srs );\
myRenderer->setMapUnits( QGis::Meters );
myRenderer->setProjectionsEnabled( true );
I'm not a python guru but you can probably replace those :: and -> 's
with '.' and it should mostly work.
On Mon, Mar 28, 2011 at 4:04 PM, Terence Van Zyl <tvzyl at csir.co.za> wrote:
> Hi All, Some help please..
> From Python I have created a standalone QgsMapCanvas to which I have added a
> number of layers, one raster and then some vector. Is there a way to get the
> vector layers to auto reproject? If Not then how would we do this manually.
> This message is subject to the CSIR's copyright terms and conditions, e-mail
> legal notice, and implemented Open Document Format (ODF) standard.
> The full disclaimer details can be found at
> This message has been scanned for viruses and dangerous content by
> and is believed to be clean. MailScanner thanks Transtec Computers for their
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
Tim Sutton - QGIS Project Steering Committee Member (Release Manager)
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.
Visit http://linfiniti.com to find out about:
* QGIS programming and support services
* Mapserver and PostGIS based hosting plans
* FOSS Consulting Services
Irc: timlinux on #qgis at freenode.net
More information about the Qgis-developer