Hello Prem I've experienced the same problem running qgis standalone. QgsCoordinateTransform works fine inside QGIS. Perhaps the project instance misses something... I've choose a bypass using pyproj
from pyproj import Proj, transform PYPROJ_SOURCE_CRS = Proj(init='epsg:4326') PYPROJ_DESTINATION_CRS = Proj(init='epsg:2154') longDestination, latDestination = transform( PYPROJ_SOURCE_CRS, PYPROJ_DESTINATION_CRS, long, lat) QgsPointXY( longDestination, latDestination) # you're back in QGIS API Hope this can help you Jean Hemmi
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer