[gdal-dev] multithreading

Javier Jimenez Shaw j1 at jimenezshaw.com
Tue Jul 29 09:49:35 PDT 2025


I think for gdal_translate I need both open and creation options (-oo and
-co), right?

On Tue, 29 Jul 2025 at 18:30, Even Rouault <even.rouault at spatialys.com>
wrote:

> Javier,
>
> for gdal_translate to COG, both should be equivalent.
>
> for gdalwarp,   -wo NUM_THREADS=ALL_CPUS -co NUM_THREADS=ALL_CPUS (ie
> enabling multithreading for warping and GeoTIFF output)   will be
> equivalent to --config GDAL_NUM_THREADS=ALL_CPUS
>
> Note that you can also do gdalwarp directly to COG. This should do the
> right things
>
> Even
>
> Le 29/07/2025 à 18:25, Javier Jimenez Shaw via gdal-dev a écrit :
> > Hi
> >
> > I am running a gdalwarp from UTM xx to EPSG:3857 and later a
> > gdal_translate to COG (the input is a normal GeoTIFF). Two steps. All
> > inputs and outputs are TIFF.
> >
> > Is there any difference between using the config variable
> > GDAL_NUM_THREADS=ALL_CPUS
> > than using the creation option for the TIFFs
> > NUM_THREADS=ALL_CPUS
> >
> > What is the fastest combination?
> >
> > Thanks.
> >
> >
> > _______________________________________________
> > 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/20250729/101b6b33/attachment-0001.htm>


More information about the gdal-dev mailing list