12rambau / rio-vrt

A simple librairy to build a vrt from multiple raster source relying only on rasterio
MIT License
8 stars 3 forks source link

Would like `build_vrt` to work using urls pointing to publicly available rasters #19

Open cmarshak opened 1 year ago

cmarshak commented 1 year ago

This looks like a promising library because I am having performance hit generating a simple xml from gdal.BuildVRT.

I would like to build a vrt from urls e.g.

from rio_vrt import build_vrt

urls = ['https://storage.googleapis.com/earthenginepartners-hansen/GFC2014/Hansen_GFC2014_last_40N_080W.tif',
        'https://storage.googleapis.com/earthenginepartners-hansen/GFC2014/Hansen_GFC2014_last_50N_080W.tif']

build_vrt('tmp.vrt', urls)

If I run this, I get:

RasterioIOError: /Users/cmarshak/bekaert-team/tile-stitcher/notebooks/https:/storage.googleapis.com/earthenginepartners-hansen/GFC2014/Hansen_GFC2014_last_40N_080W.tif: No such file or directory
12rambau commented 1 year ago

interesting use case, I have very little band width to code anything here but I'll be happy to review a PR!