<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">Hi Johannes,<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">You can use <span class="sig-name descname"><span class="n"><span class="pre">GDALGetGCPCount to check if the file has GCPs, then use </span></span></span>gdalwarp -tps or the equivalent to uncrinkle it: <a href="https://stackoverflow.com/questions/48770002/project-raster-file-using-gcps">https://stackoverflow.com/questions/48770002/project-raster-file-using-gcps</a>.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><span class="sig-name descname"><span class="n"><span class="pre">Laurentiu</span></span></span><br></div><div style="font-family:Arial;"><br></div><div>On Tue, Jun 11, 2024, at 17:02, Johannes Paul via gdal-dev wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>Hello,<br></div><div><br></div><div>coming back to an old thread regarding a DIMAP product which has no lon/lat (<a href="https://lists.osgeo.org/pipermail/gdal-dev/2018-January/048014.html">https://lists.osgeo.org/pipermail/gdal-dev/2018-January/048014.html</a>).<br></div><div>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.<br></div><div><br></div><div>Is there a way I can detect GDALGetGeoTransform shall not be used ?<br></div><div><br></div><div>Thanks,<br></div><div>Johannes<br></div><div><br></div><div><br></div></div><div>_______________________________________________<br></div><div>gdal-dev mailing list<br></div><div><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></div><div><br></div></blockquote><div style="font-family:Arial;"><br></div></body></html>