<div dir="ltr"><div class="gmail_quote">Hi<br>
<br>
I try to read raster data from an URL with QGIS. I see QGIS uses GDAL <br>
vsicurl to connect to data. It works just fine. Only GDAL tries to fetch <br>
a lot of meta files which can be disabled by setting the <br>
GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR<br>
<br>
Using this:<br>
<br>
GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR gdalinfo /vsicurl/http://<url>/my.tif<br>
<br>
It works as expected and does not query any additional files.<br>
<br>
But starting QGIS with GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR does not <br>
have the expected effect.<br>
<br>
Now I wonder where this variable gets lost. It is available in the QGIS <br>
settings dialog as ENV but seems not be reflected when GDAL is called. <br>
I'm not that deep in the connections between GDAL and QGIS. I know this <br>
is more an issue for QGIS then for GDAL  but I ask here anyway because <br>
already talked to QGIS people who suggested to ask here :)<br>
<br>
<br>
Thank you for your help.<br>
<br>
<br>
Cheers Clemens<br>
<br>
</div></div>

<br>
<div style="text-align:left"><a href="https://qfield.org/get/" target="_blank"><img src="https://www.opengis.ch/wp-content/uploads/2022/04/Qfield_Banner_email.png" alt="https://qfield.org/get/"></a><span style="font-family:Arial"><a><br></a></span></div><div style="text-align:left"><span style="font-family:Arial">QFIELD 2.0 IS HERE!<span style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><font size="3"> </font></span>- Hold the power of QGIS in your hand</span><span style="font-family:Arial"> - <a href="https://www.opengis.ch/2022/04/05/qfield-2-0-is-here/" target="_blank">learn more</a> - <a href="https://qfield.org/get" target="_blank">get it now</a><br></span></div>