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