I'm working with mutliple sets of layers in order to create a new one. As I need to load them directly from the internet, I use both /vsizip/ and /vsicurl/
But I'm stuck at loading one of them. Here is what I do:
from osgeo import ogr address_shp = ogr.Open("/vsizip//vsicurl/http://bano.openstreetmap.fr/BAN_odbl/BAN_odbl_01-shp.zip") if address_shp is None: print ('Address : download successfull') else: print ('Address : download failed') parcels_shp = ogr.Open("/vsizip//vsicurl/https://cadastre.data.gouv.fr/data/etalab-cadastre/latest/shp/departements/01/cadastre-01-batiments-shp.zip") if parcels_shp is None: print ('Parcels : download successfull') else: print ('Parcels : download failed')
>Address : download successfull >Parcels : download failed
I got the same result directly in QGis. So, does /vsicurl/ handle https protocol? Or is the problem elsewhere?
OS : Windows 7 / Qgis 2.8.26 & 3.4.2