<div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>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.</div><div><br></div><div>eg. gdal.Open("/vsis3?ext=.tif/mybucket/mypath/my.tif", ...)</div><div><br></div><div>would be the equivalent of <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif <i>for that dataset only</i>.</span><br clear="all"><div><br></div><div><div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">eg. gdal.Open("/vsis3?ext=.tif&ext=.tif.aux.xml/mybucket/mypath/my.tif", ...)</div><div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">would be the equivalent of CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif,.tif.aux.xml</span></div><div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div>(to simplify the first case, maybe `?ext` could be the equivalent of whatever extension is on the path)<br class="gmail-Apple-interchange-newline"><br></div><div>I'm not entirely happy with the approach since it pollutes the path - a single path is now is also referring to other files (eg. what should VSIFOpenL() conceivably do with ?ext=* ?)</div><div><br></div><div>Another alternative would be to have it as an Open Option to pass to gdal.OpenEx(), though they seem designed for driver-specific options rather than access-method.</div><div><br></div><div>Thoughts?<br></div><div><br></div><div>Rob :)</div></div></div></div>