[gdal-dev] How to stop gdal_translate using overviews when resampling

Even Rouault even.rouault at spatialys.com
Fri May 28 07:03:27 PDT 2021


With GDAL 3.3, you could add -oo OVERVIEW_LEVEL=NONE. See 
https://gdal.org/api/raster_c_api.html?highlight=overview_level#_CPPv410GDALOpenExPKcjPPCKcPPCKcPPCKc

Le 28/05/2021 à 15:56, Jon Morris a écrit :
>
> Hello all,
>
> One of our users reported a difference in outputs after we upgraded 
> from GDAL 2.2 to 3.2. Our tool is using gdal_translate to resample a 
> raster from 5m to 10m and the outputs are very different.
>
> I'm ok with things changing between major versions, but when 
> investigating, I found that the outputs also change depending on 
> whether the input file has overviews. I was aware of the issue with 
> gdalwarp where overviews are used as a shortcut 
> (http://erouault.blogspot.com/2014/10/warping-overviews-and-warped-overviews.html 
> <http://erouault.blogspot.com/2014/10/warping-overviews-and-warped-overviews.html>), 
> but haven't been able to find anything similar in the docs or the code 
> when it comes to gdal_translate.
>
> Should overviews make a difference? Is there any way to disable this 
> behaviour, so the resampling is always done using the input raster and 
> not the overviews?
>
> Thanks,
>
> Jon
>
> *Jon Morris*
>
> *Software Developer*
>
> e: ​ 	*Jon.Morris at jbarisk.com* <mailto:Jon.Morris at jbarisk.com>
> t: 	*+44 (0)1756 799919* <tel:+44%20(0)1756%20799919>
>
> 	
>
> *www.jbarisk.com* <http://www.jbarisk.com/>
>
> Facebook <https://www.facebook.com/TheFloodPeople>
>
> 	
> LinkedIn <https://www.linkedin.com/company/jba-risk-management/>
>
> 	
> Twitter <https://twitter.com/JBARisk>
>
> 	
> YouTube <https://www.youtube.com/channel/UC0iatom2jYbW96voW0rlpCw>
>
> 	
>
> All JBA Risk Management's email messages contain confidential 
> information and are intended only for the individual(s) named. If you 
> are not the named addressee you should not disseminate, distribute or 
> copy this e-mail.
> Please notify the sender immediately by email if you have received 
> this email by mistake and delete this email from your system.
> JBA Risk Management Limited is registered in England, company number 
> 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North 
> Yorkshire, BD23 3FD, England.
>
>
> _______________________________________________
> 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/20210528/05e919d6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image013255.png
Type: image/png
Size: 9886 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210528/05e919d6/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image421899.png
Type: image/png
Size: 651 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210528/05e919d6/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image598543.png
Type: image/png
Size: 715 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210528/05e919d6/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image704525.png
Type: image/png
Size: 966 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210528/05e919d6/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image194176.png
Type: image/png
Size: 784 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210528/05e919d6/attachment-0009.png>


More information about the gdal-dev mailing list