ARPA-SIMC / meteosatlib

OpenMTP/HRI/HRIT C++ access libraries, gdal drivers and other tools
GNU General Public License v2.0
8 stars 2 forks source link

Compatibility layers of GDAL 3.0 _GetProjectionRef() have been removed in GDAL 3.6 #36

Closed edigiacomo closed 1 year ago

edigiacomo commented 1 year ago

From https://github.com/OSGeo/gdal/blob/master/MIGRATION_GUIDE.TXT:

MIGRATION GUIDE FROM GDAL 3.5 to GDAL 3.6
-----------------------------------------

- Out-of-tree vector drivers:
  * GDALDataset::IBuildOverviews(): parameters panOverviewList and panBandList
    are now of type 'const int*' (previously 'int*')
    Added a CSLConstList papszOptions member.
  * GDALRasterBand::BuildOverviews(): parameter panOverviewList is now of
    type 'const int*' (previously 'int*')
    Added a CSLConstList papszOptions member.
  * Compatibility layers of GDAL 3.0 _GetProjectionRef(), _GetGCPProjectionRef(),
    _SetProjection(), _SetGCPs() have been removed

This means that we should remove all _GetProjectionRef() methods when compiling against GDAL_VERSION_MAJOR > 2 and reimplement GetSpatialRef() because GetSpatialRefFromOldGetProjectionRef() has been removed too.