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

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to