[gdal-dev] Adding gcps to a raster using gdal_translate can result in data loss.

Hays Barrett hbarrett at edac.unm.edu
Tue Mar 30 09:36:34 PDT 2021


I put together a page that better explains the issue and used one of the actual images from our project.
https://haysbarrett.com/gdal_translate/
Thanks for looking into this for me.
-Hays

----- Original Message -----
From: "jratike80" <jukka.rahkonen at maanmittauslaitos.fi>
To: gdal-dev at lists.osgeo.org
Sent: Friday, March 26, 2021 2:59:36 PM
Subject: Re: [gdal-dev] Adding gcps to a raster using gdal_translate can result in data loss.

Hi,

Please give an exact example. Preferably with a raster that can be created
from command line with gdal_create followed by other required commands. Or
alternatively Python code that re-produces the issue.

-Jukka Rahkonen-



Hays Barrett wrote
> If the gcps stretch the image beyond the dimensions of the original raster
> it appears to clip the data that sits outside of the original raster
> dimensions rather than increase the raster dimensions to fit the stretched
> data . 
> Is this the expected behavior? 
> If so is there a way to increase the dimensions of a raster so there is no
> data loss? 
> Thanks, 
> -Hays 
> 
> _______________________________________________
> gdal-dev mailing list

> gdal-dev at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list