[gdal-dev] Using /vsicurl and /vsizip with zip files and signed S3 links

Even Rouault even.rouault at spatialys.com
Tue Oct 31 15:37:18 PDT 2017


> You could try one of the following :
> 
>   /vsizip//vsicurl/
> https://gsfc-ngap-hyp3-product-prod.s3.amazonaws.com/547/S1B_IW_GRDH_1SDV_20
> 170903T223511_20170903T223539_007233_00CC06_E9A8-POEORB-24-RGB.zip?AWSAccess
> KeyId=AKIAIYGQSCGFDA6WYRIQ&Expires=1824498425&Signature=WkQJbs%2FE6vLttvAAYt
> 2fXlKOeKk%3D/S1B_IW_GRDH_1SDV_20170903T223511_20170903T223539_007233_00CC06_
> E9A8-POEORB-24-RGB.tif

The hint did not work here because of the signature stuff after the .zip extension. I've fixed it and now it would propose:

/vsizip/{/vsicurl/https://gsfc-ngap-hyp3-product-prod.s3.amazonaws.com/547/S1B_IW_GRDH_1SDV_20170903T223511_20170903T223539_007233_00CC06_E9A8-POEORB-24-RGB.zip?AWSAccessKeyId=AKIAIYGQSCGFDA6WYRIQ&Expires=1824498425&Signature=WkQJbs%2FE6vLttvAAYt2fXlKOeKk%3D}/S1B_IW_GRDH_1SDV_20170903T223511_20170903T223539_007233_00CC06_E9A8-POEORB-24-RGB.tif

which will work

The fix is just for the hint, you can use the above syntax, documented in 
http://gdal.org/gdal_virtual_file_systems.html#gdal_virtual_file_systems_vsizip

"""Starting with GDAL 2.2, an alternate syntax is available so as to enable chaining and not being dependent
on .zip extension : /vsizip/{/path/to/the/archive}/path/inside/the/zip/file. Note that /path/to/the/archive may also itself use this alternate syntax."""

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171031/c8b5f24e/attachment.html>


More information about the gdal-dev mailing list