[gdal-dev] /vsicurl/ and 3XX response code

Even Rouault even.rouault at spatialys.com
Wed Mar 11 10:43:53 PDT 2020


There are 2 issues:
- the CSV driver only recognizes files with .csv extension, unless you prefix the filename with CSV:
- the underling resource doesn't support HTTP GET requests used by /vsicurl/. Fortunately in that situation, you can use the alternate /vsicurl_streaming/ implementation

So all in all, the following works:

ogrinfo -ro -al -q CSV:/vsicurl_streaming/https://query.data.world/s/q4h3mwm2acruvoc5snpp5ltsn5h2gk

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list