[gdal-dev] [Doc] gdal_calc.py extent option

Nicolas Godet nicolas.godet at outlook.fr
Mon Oct 17 01:48:50 PDT 2022


Indeed, this is right.
My bad..
________________________________
De : Andrew C Aitchison <andrew at aitchison.me.uk>
Envoyé : lundi 17 octobre 2022 10:25
À : Nicolas Godet <nicolas.godet at outlook.fr>
Cc : gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>
Objet : Re: [gdal-dev] [Doc] gdal_calc.py extent option

On Mon, 17 Oct 2022, Nicolas Godet wrote:

> Dear Devs,
>
> In documentation<https://gdal.org/programs/gdal_calc.html#cmdoption-extent>, extent param description seems a bit odd to me.
>
>
> union - the extent (bounds) of the output will be the minimal
> rectangle that contains all the input extents.
>
> intersect - the extent (bounds) of the output will be the maximal
> rectangle that is contained in all the input extents.
>
> Shouldn't it be the other way around?

I think this *is* the right way round;
"all" can be misunderstood but I can not think of a clearer phrasing,
although "every one of" might help.

> As I intend to add this option to QGIS gdal_calc window (very useful
> option), I must be sure.

--
Andrew C. Aitchison                      Kendal, UK
                    andrew at aitchison.me.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221017/a1112962/attachment.htm>


More information about the gdal-dev mailing list