I would say that 0 is the default. Read only and all drivers.
If you want anything else, then specify it.

On Thu, 6 Feb 2025, 09:10 Michał Kowalczuk via gdal-dev, <
gdal-dev@lists.osgeo.org> wrote:

> Hi GDAL devs,
> does anyone know why GDAL_OF_ALL and GDAL_READONLY consts have the same
> value?
> Both are used by GDALOpenEx as nOpenFlags param so shouldn't they be
> distinguishable?
>
> *#define GDAL_OF_READONLY 0x00*
> *#define GDAL_OF_ALL 0x00*
>
>
> https://github.com/OSGeo/gdal/blob/5248a30e9a84998dd0416ab7b43fb1a3b1a18cb2/gcore/gdal.h#L999
>
> https://github.com/OSGeo/gdal/blob/5248a30e9a84998dd0416ab7b43fb1a3b1a18cb2/gcore/gdal.h#L1011
>
> Have a good day!
> Michał Kowalczuk
> _______________________________________________
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to