[gdal-dev] unsetting configs vs empty values

Even Rouault even.rouault at spatialys.com
Wed Feb 19 05:08:34 PST 2025


Mike,

>
> Homework for me for this question was to see if other options behave 
> this way in terms of "default", and I didn't get to that today.

The more reliable way is unset an option is through the API with 
CPLSetConfigOption(option_name, NULL).

Setting an empty string will *sometimes* have a similar effect, but I'm 
pretty sure there are some options where NULL vs empty string will lead 
to different behaviors.

Even

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250219/6473ed80/attachment.htm>


More information about the gdal-dev mailing list