Re: [Qgis-developer] Problems with reprojecting to mercator

2013-10-25 Thread hubbatov
I did it! But there are some little bugs.. But idea is right. I was need to transform degrees to mercator points manually. Thanks! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Problems-with-reprojecting-to-mercator-tp5082191p5084844.html Sent from the Quantum GIS - Deve

Re: [Qgis-developer] Problems with reprojecting to mercator

2013-10-18 Thread hubbatov
Ok, how can i set extent to layers extent? QgsApplication a(argc,argv, true); QgsProviderRegistry::instance("/usr/local/lib/qgis/plugins"); a.setPkgDataPath(QDir::homePath() + QDir::separator() + ".harver/"); QgsMapCanvas *canvas = new QgsMapCanvas(0, 0);

Re: [Qgis-developer] Problems with reprojecting to mercator

2013-10-17 Thread hubbatov
First of all thanks for reply, Kaosmos I wrote as you said. m_mapCanvas->mapRenderer()->setProjectionsEnabled(true); m_mapCanvas->mapRenderer()->setDestinationCrs(m_mapCanvas->pseudoMercator()); m_mapCanvas->mapRenderer()->setMapUnits(m_mapCanvas->pseudoMercator().mapUnits()); I created custom

Re: [Qgis-developer] Problems with reprojecting to mercator

2013-10-15 Thread hubbatov
Hey? Nobody knows how to do this? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Problems-with-reprojecting-to-mercator-tp5082191p5083593.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-dev