Hi Rob,

On Wed, Oct 10, 2018 at 7:39 AM Robert Coup <robert.c...@koordinates.com>
wrote:

> Hi all,
>
> Wondering about being able to set CPL_VSIL_CURL_ALLOWED_EXTENSIONS on a
> specific dataset rather than as a global option. This would allow opening
> multiple files in the same process without needing to manage setting &
> resetting configuration contexts.
>

Configuration management doesn't have to be so bad. I have an example of
how to do Rasterio-style configuration contexts, including reset, using
GDAL's Python bindings at


https://rasterio.readthedocs.io/en/latest/topics/configuration.html#gdal-example

I'm not a voter, but would be unhappy if we added this kind of option to
GDAL's paths. The syntax is already quite complex.

The open options approach is reasonable, if not easy to do.

-- 
Sean Gillies
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to