[gdal-dev] In-memory VRT performance

Sean Gillies sean at mapbox.com
Fri Jun 15 08:06:09 PDT 2018


Hi Even,

On Fri, Jun 15, 2018 at 2:48 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Hi Sean,
>
> >
> > I have a GeoTIFF in S3 and am trying to access it via a VRT. I'm
> > constructing the VRT in Python and then passing the string directly to
> GDAL
> > like
> >
> >     GDALOpenEx("<VRTDataset>...</VRTDataset>", ...)
> >
> > I'm getting the results I expect, but very slowly. In my logs, it seems
> > that GDAL is fetching the entire GeoTIFF and copying it to /vsimem/
> before
> > reading any data.
>
> In your VRT, you use a filename starting by "http://", and this will be
> handled by the historic HTTP "driver", that downloads the whole file,
> before
> passing it to the final driver that can handle it.
>
> You just need to prefix the filename with /vsicurl/
>
> Even
>

Indeed, that was it! Thank you.

-- 
Sean Gillies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180615/28476b11/attachment.html>


More information about the gdal-dev mailing list