On mercredi 11 mars 2020 09:53:55 CET aborruso wrote: > Hi Even , > > > Even Rouault-2 wrote > > > No, this is an implementation detail. You'd have to use the curl or other > > HTTP > > API for that. > > today a lot of datasets, especially structured text data, are hosted in > portals that reply with "HTTP/1.1 301 Moved Permanently". > A classic example are the many and preciuous CSV and JSON files that you > have in github gist. > > It would be great to have as feature the option to follow the link (as in > curl via "-L" option), both using the gdal/ogr /vsicurl/ via command line > and via the definition of a VRT – GDAL Virtual Format XML file.
/vsicurl/ should automatically follow links. This is even tested in https://github.com/OSGeo/gdal/blob/master/autotest/gcore/vsicurl.py#L230 -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev