OSGeo / libgeotiff

Official repository of the libgeotiff project
183 stars 70 forks source link

GTIFGetDefn(): add missing normalization of angular units to degree #118

Closed rouault closed 3 months ago

rouault commented 4 months ago

Contrary to what the documentation of GTIFDefn::ProjParm[] mentionned, we failed to normalize angular measures to degrees when reading them from projection parameters (ProjXXXXXGeoKey's) when ProjCoordTransGeoKey was present (but we did normalize them when reading them from the PROJ database when there were was only a EPSG PCS code)

Relates to https://github.com/OSGeo/gdal/issues/10154 and https://github.com/OSGeo/gdal/pull/10158