[gdal-dev] raster reproject fails without error message with GCP_HOMOGRAPHY option
Even Rouault
even.rouault at spatialys.com
Wed May 21 05:59:30 PDT 2025
Mia,
please file an issue at https://github.com/OSGeo/gdal/issues with the
source dataset + command line to reproduce
Even
Le 21/05/2025 à 14:56, Schumacher, Mia via gdal-dev a écrit :
>
>> Dear gdal community,
>>
>> I hope this is the right spot to ask questions?
>>
>> I am trying to use new gdal raster reproject to georeference image
>> chunks using ground control points. I figured that for some of these
>> chunks, due to ship movement, the lower left & lower right image
>> coordinates are switched, which (understandably) leads the algorithm
>> to fail. however, there is no error message, it just doesn't produce
>> output. I use:
>>
> gdal raster reproject -r bilinear --to SRC_METHOD=GCP_HOMOGRAPHY --co
> COMPRESS=DEFLATE -d EPSG:4326 -i
> 2025-03-17_08-30-44_0_ch0_0_chunk_tmp.tif -o
> 2025-03-17_08-30-44_0_ch0_0_chunk_tmp_WGS84.tif
>>
>> with gcps applied like so:
>>
>
> gdal_translate -of GTiff \
> -gcp im_x_ul im_y_ul lon_ul, lat_ul \
> -gcp im_x_ur im_y_ur lon_ur, lat_ur \
> -gcp im_x_ll im_y_l lon_ll, lat_ll \
> -gcp im_x_lr im_y_lr lon_lr, lat_lr
> (ul/r, ll/r = upper/lower left/right) --> but sometimes, ll and lr are
> switched
>>
>> I would love to catch the error to adjust those files - Is there
>> something like a verbose mode for gdal raster reproject? Then i could
>> see what is going on?
>>
>> Anyways thank you guys so much for all the work you put into the
>> development of gdal, it is such a powerful tool!
>> All the best, Mia
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250521/2e52b820/attachment.htm>
More information about the gdal-dev
mailing list