[gdal-dev] WFS and HTTP compression

Even Rouault even.rouault at mines-paris.org
Fri Mar 22 14:29:03 PDT 2013


Le vendredi 22 mars 2013 22:12:51, Jeremy Palmer a écrit :
> Hi All,
> 
> I've being doing some bandwidth analysis when using GDAL/OGR trunk with a
> Geoserver WFS 1.1.0 server. I've found that gzip HTTP compression is not
> used when requesting the data in the GML2 and GML3 output format if
> OGR_WFS_USE_STREAMING is set to YES. However when requesting the GeoJSON
> output format (regardless of the OGR_WFS_USE_STREAMING setting) it is
> using HTTP gzip compression.
> 
> Is there a reason why HTTP compression is not used for GML when streaming
> is enabled?

Because it doesn't take the same code path (GML uses /vsicurl_steaming/ while 
other output formats use CPLHttpFetch() that downloads the whole file into 
memory and then parses it). I've just added GZip compression request in 
/vsicurl_streaming/ (can be turned off by setting CPL_CURL_GZIP to NO)

> 
> Thanks,
> Jeremy
> 
> This message contains information, which is confidential and may be subject
> to legal privilege. If you are not the intended recipient, you must not
> peruse, use, disseminate, distribute or copy this message. If you have
> received this message in error, please notify us immediately (Phone 0800
> 665 463 or info at linz.govt.nz) and destroy the original message. LINZ
> accepts no responsibility for changes to this email, or for any
> attachments, after its transmission from LINZ. Thank You.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list