[QGIS-Developer] issue transforming coords from EPSG:4258 'ETRS89' to 4326
Alessandro Pasotti
apasotti at gmail.com
Mon Mar 21 08:56:13 PDT 2022
Hi,
I'm not sure if this is a local issue on my dev env or if it is a real
issue, I have a raster layer in EPSG:4258 ('ETRS89') from copernicus and
the project's CRS is 4326, the transformation silently fails and the raster
is not reprojected.
The issue can be reproduced from the console too:
ct = QgsCoordinateTransform(QgsCoordinateReferenceSystem(4258),
QgsCoordinateReferenceSystem(4326),
QgsProject.instance().transformContext())
ct.transformBoundingBox(QgsRectangle(4153600, 1296000, 5000000, 2000000))
ct.isValid()
True
Result:
<QgsRectangle: 4153600 1296000, 5000000.00000001396983862
1999999.99999999720603228>
Any ideas?
--
Alessandro Pasotti
QCooperative: www.qcooperative.net
ItOpen: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220321/548e1bc2/attachment.html>
More information about the QGIS-Developer
mailing list