Re: [gdal-dev] GDALGetGeoTransform

2024-06-11 Thread Johannes Paul via gdal-dev
Thanks Even, that's what I was looking for. Thanks a lot for the support. On Tue, 11 Jun 2024 at 16:09, Even Rouault wrote: > Johannes, > > access to your DIMAP product would be needed to investigate. > > I assume the product also returns RPC? If so, test GetMetadata("RPC") > != null, and if i

Re: [gdal-dev] GDALGetGeoTransform

2024-06-11 Thread Laurențiu Nicola via gdal-dev
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, >

Re: [gdal-dev] GDALGetGeoTransform

2024-06-11 Thread Even Rouault via gdal-dev
Johannes, access to your DIMAP product would be needed to investigate. I assume the product also returns RPC?   If so, test GetMetadata("RPC") != null, and if it does, you can likely consider than any GeoTransform is "garbage". If you have RPCs, you can directly compute a geotransform. You ne