[gdal-dev] GDAL open flags

Michał Kowalczuk michkowalczuk at gmail.com
Thu Feb 6 00:10:09 PST 2025


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250206/e9bfb026/attachment.htm>


More information about the gdal-dev mailing list