[gdal-dev] Bug/feature: OGR VSICURL does not handle gzip compression

Stefan Gofferje lists at home.gofferje.net
Fri Nov 11 00:43:27 PST 2022


Hi,

On 11/11/22 04:59, Thomas Gratier wrote:
> Use the CURL option available through GDAL e.g 
> https://trac.osgeo.org/gdal/wiki/ConfigOptions#CPL_CURL_GZIP 
> <https://trac.osgeo.org/gdal/wiki/ConfigOptions#CPL_CURL_GZIP> (also 
> documented at https://gdal.org/user/configoptions.html 
> <https://gdal.org/user/configoptions.html>)
> 
> To illustrate, try the following
> 
> ogrinfo -so --config CPL_CURL_GZIP YES 
> "https://tie.digitraffic.fi/api/v3/data/traffic-messages/simple?inactiveHours=0&includeAreaGeometry=false&situationType=TRAFFIC_ANNOUNCEMENT <https://tie.digitraffic.fi/api/v3/data/traffic-messages/simple?inactiveHours=0&includeAreaGeometry=false&situationType=TRAFFIC_ANNOUNCEMENT>" OGRGeoJSON

That works from the command line but I haven't found a way to pass 
options when using VSICURL in mapserver or QGIS.

-Stefan

-- 
  (o_   Stefan Gofferje            | SCLT, MCP, CCSA
  //\   Reg'd Linux User #247167   | VCP #2263
  V_/_  https://www.gofferje.net   | https://www.saakeskus.fi



More information about the gdal-dev mailing list