[gdal-dev] Rotation not found from ENVI header

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Mon Aug 17 13:44:35 PDT 2020


Hi,

In the question at gis.stackexchange the rotation was 90 but I trust that the issue is the same.

-Jukka-


Lähettäjä: Even Rouault <even.rouault at spatialys.com>
Lähetetty: maanantai 17. elokuuta 2020 14.36
Vastaanottaja: gdal-dev at lists.osgeo.org
Kopio: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Aihe: Re: [gdal-dev] Rotation not found from ENVI header


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/b14a87a3/attachment.html>


More information about the gdal-dev mailing list