Hi Devs,<div><br></div><div><div>I am making the plugin, where i use this method &quot;core.QgsCoordinateTransform.transform&quot;, the QGis showed dialog error.</div></div><div><br></div><div>I tested by Python console and the same error showed.</div>
<div><br></div><div>The script to run on python console:</div><div><br></div><div><div>from qgis import core</div><div>mapCanvas = qgis.utils.iface.mapCanvas()</div><div>srsCanvas = mapCanvas.mapRenderer().destinationSrs()</div>
<div>srsGoogle = core.QgsCoordinateReferenceSystem(900913, core.QgsCoordinateReferenceSystem.EpsgCrsId)</div><div>pntCenter = mapCanvas.extent().center()</div><div>print pntCenter</div><div>coodTrans = core.QgsCoordinateTransform(srsCanvas, srsGoogle)</div>
<div>pntCenter = coodTrans.transform(pntCenter, core.QgsCoordinateTransform.ForwardTransform) # Error showed here!</div><div>print pntCenter</div></div><div><br></div><div><div>Message error:</div><div><br></div><div>Title dialog : Exception</div>
<div>Text message: </div><div>forward transform(-0.832741, -0.274682)</div><div>failed with error: No such file or directory</div></div><div><br></div><div><br></div><div>My enviroment:</div><div>Windows XP</div><div>Package from OSGEO install.</div>
<div>QGIS trunck r15051</div><div><br></div><div>When i continue running the plugin, the next time call this methods the error does not appear.</div><div><br></div><div>I need initialize one library before call the transform&#39;s method  ?</div>
<div><br></div><div>Regards,</div><div>Luiz Motta</div><div><br></div><div><br></div>