<div dir="ltr">I have remote *.vrt raster and *.vrt.ovr accessible through HTTP. When I run the following script with rasterio:<br><div><br></div><div><pre style="background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="color:rgb(0,0,0)">with rasterio<span style="color:rgb(0,140,0)">.</span>open("http://*.vrt"") as src:
    image = src<span style="color:rgb(0,140,0)">.</span>read(indexes=[<span style="color:rgb(0,140,0)">1</span>, <span style="color:rgb(0,140,0)">2</span>, <span style="color:rgb(0,140,0)">3</span>], **{
        "window": Window(col_off=<span style="color:rgb(0,140,0)">6961</span>, row_off=<span style="color:rgb(0,140,0)">105176</span>, width=<span style="color:rgb(0,140,0)">5671</span>, height=<span style="color:rgb(0,140,0)">5648</span>),
        "resampling": Resampling<span style="color:rgb(0,140,0)">.</span>cubic,
        "boundless": True,
        "out_shape": (<span style="color:rgb(0,140,0)">3</span>, <span style="color:rgb(0,140,0)">383</span>, <span style="color:rgb(0,140,0)">385</span>),
        "masked": True
    })</span>
</pre>depending on "resampling" algorithm GDAL sends different amounts of requests to the server. In the case of "cubic" it doesn't take into account overviews and sends requests directly to *.tif files (900 in my case). In case of "nearest" everything is ok (only 60 requests, *.vrt.ovr is taken into account).</div><div><br></div><div>Does GDAL check the resampling algorithm of overviews and in case it differs from the option specified in read() method they are bypassed or it works differently?</div></div>