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

Idan Miara idan at miara.com
Mon Oct 17 01:54:52 PDT 2022


Hi!
I needed the docs are correct but as this is the second time it confuses
people maybe the wording should be revised?

https://github.com/OSGeo/gdal/pull/5969

Any ideas?

On Mon, 17 Oct 2022, 11:49 Nicolas Godet, <nicolas.godet at outlook.fr> wrote:

> 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
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221017/e7941b05/attachment-0001.htm>


More information about the gdal-dev mailing list