[gdal-dev] GDAL open flags

Michał Kowalczuk michkowalczuk at gmail.com
Thu Feb 6 01:27:55 PST 2025


It make sense. If I find an unusual case, I'll write here :-)
Thanks!

czw., 6 lut 2025 o 09:19 Javier Jimenez Shaw <j1 at jimenezshaw.com>
napisał(a):

> 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/f4bff839/attachment.htm>


More information about the gdal-dev mailing list