[gdal-dev] GDALGetGeoTransform

Laurențiu Nicola lnicola at dend.ro
Tue Jun 11 07:07:36 PDT 2024


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 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240611/fd0f67e8/attachment-0001.htm>


More information about the gdal-dev mailing list