[gdal-dev] Rotation not found from ENVI header

Even Rouault even.rouault at spatialys.com
Mon Aug 17 04:35:46 PDT 2020


On lundi 17 août 2020 09:42:15 CEST Rahkonen Jukka (MML) wrote:
> Hi,
> 
> See
> https://gis.stackexchange.com/questions/371579/geotiff-to-envi-gdal-transla
> tion-causes-rotation
> 
> I verified that GDAL 3.2.0dev gives an error for the test image "Warning 1:
> Geotransform matrix has non rotational terms".  However, the ENVI header
> has a line map info = {Transverse Mercator, 1, 1, 32371999.5, 5679999.5,
> 1.95121951219512, 1.95121951219512, rotation=90}
> 
> Rotation is handled in
> https://github.com/OSGeo/gdal/blob/master/gdal/frmts/raw/envidataset.cpp#L6
> 32 and it is tested in this autotest
> https://github.com/OSGeo/gdal/blob/master/autotest/gdrivers/envi.py#L312
> 
> In the data used for the test
> https://github.com/OSGeo/gdal/blob/master/autotest/gdrivers/data/envi/rotat
> ion.hdr the rotation appears on the last line map info = { UTM , 1.000 ,
> 1.000 , 736600.089 , 4078126.750 , 2.7000000000e+00 , 2.7000000000e+00 , 12
> , North , WGS-84 , units=Meters , rotation=-66.00000000 }

I've just fixed the issue. Was specific to south-up images / rotation=180

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200817/dbbc886c/attachment.html>


More information about the gdal-dev mailing list