https://issues.qgis.org/https://issues.qgis.org/favicon.ico2010-04-18T04:01:29ZQGIS Issue TrackingQGIS Application - Bug report #2661: QgsVectorLayer.crs not set correctlyhttps://issues.qgis.org/issues/2661?journal_id=220232010-04-18T04:01:29ZVáclav Řehák
<ul></ul><p>Sorry for the formating issues and for accidentally keeping my debug code at the end.</p>
<p>This is the code I use to reproject my points:<br /><pre>
renderer = self.canvas.mapRenderer()
newpoint = renderer.layerToMapCoordinates(waypointslayer, point)
</pre></p>
<p>and I need to add this to make it work</p>
<pre>
srs = [[QgsCoordinateReferenceSystem]](4326)
waypointslayer.setCrs(srs)
</pre> QGIS Application - Bug report #2661: QgsVectorLayer.crs not set correctlyhttps://issues.qgis.org/issues/2661?journal_id=220242010-05-05T02:05:14ZMartin Dobiaswonder.sk@gmail.com
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>fixed in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/986da374589bf0a22c2ebf46e91f49ca0da642d8" title="Fixed CRS for OSM and GPX providers. Should fix #2661. git-svn-id: http://svn.osgeo.org/qgis/tr...">986da374</a> (SVN r13426).</p>