[gdal-dev] gdalwarp: different results between 2.3.0 and 2.4.0

GUIMMARA, Sébastien sebastien.guimmara at airbus.com
Mon Jul 8 03:35:12 PDT 2019


I have a small GRIB file whose coordinate system is GRIB-specific, and it spans the whole world, from longitude 0 to 360. I would like to read this raster from an EPSG:4326 perspective, so I'm using gdalwarp to warp it to a VRT :

gdalwarp  -t_srs EPSG:4326 -of VRT input.grib output.vrt

When I inspect the VRT using GDAL 2.4.0 (the one shipped with QGIS 3.4) I notice that the geotransform is correct. When imported in QGIS, it correctly spans the world from longitude -180 to 180.

However, the same VRT generated with GDAL 2.3.0 gives a completely different geotransform. Actually it seems that the original geotransform was not modified at all, and I cannot correctly import it in QGIS, since it spans from 0 to 360, and thus is not aligned properly with other layers in the EPSG:4326 SRS (which span from -180 to 180)

Were there any modification to gdalwarp from 2.3.0 to 2.4.0 ? different default options ?

Thanks,
Sébastien

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190708/0430a770/attachment.html>


More information about the gdal-dev mailing list