[gdal-dev] GDAL open flags
Javier Jimenez Shaw
j1 at jimenezshaw.com
Thu Feb 6 00:19:46 PST 2025
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 at 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 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/20250206/b46671c2/attachment.htm>
More information about the gdal-dev
mailing list