<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hello everyone!<br/>
<br/>
I am trying to set the ellipsoid (CRS) of the measure tool by pyqgis manually to WGS84 for example.<br/>
<br/>
I tried to do this by<br/>
QgsDistanceArea().setSourceCrs(4326)<br/>
but QgsDistanceArea().sourceCrs() keeps returning me the value 3452L even though I think to have set it to 4326 by the line above!<br/>
<br/>
Am I getting something wrong about the functionality of QgsDistanceArea().setSourceCrs()? Or is there a bug...?<br/>
<br/>
I would just like to set the measurement ellipsoid to WGS84 manually, similar like setting the project CRS by:<br/>
<a href="http://iface.mapCanvas" target="_blank">iface.mapCanvas</a>().mapRenderer().setDestinationCrs(QgsCoordinateReferenceSystem(4326))<br/>
for example.<br/>
<br/>
I would be thankful for help, thanks in advance!<br/>
<br/>
Best regards,<br/>
Hannes<br/>
 </div>
</div>
</div></div></body></html>