Hi Johannes, You can use GDALGetGCPCount to check if the file has GCPs, then use gdalwarp -tps or the equivalent to uncrinkle it: https://stackoverflow.com/questions/48770002/project-raster-file-using-gcps.
Laurentiu On Tue, Jun 11, 2024, at 17:02, Johannes Paul via gdal-dev wrote: > Hello, > > coming back to an old thread regarding a DIMAP product which has no lon/lat > (https://lists.osgeo.org/pipermail/gdal-dev/2018-January/048014.html). > GDALGetGeoTransform method will return CE_None despite GeoTransformation > matrix is not as expected, and in that specific case I would rather use > GDALGCPsToGeoTransform to compute GeoTransform array. > > Is there a way I can detect GDALGetGeoTransform shall not be used ? > > Thanks, > Johannes > > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev