[gdal-dev] Rotation not found from ENVI header

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Mon Aug 17 02:42:15 PDT 2020


Hi,

See https://gis.stackexchange.com/questions/371579/geotiff-to-envi-gdal-translation-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#L632 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/rotation.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 }

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200817/3395a2ad/attachment.html>


More information about the gdal-dev mailing list