Fwd: [gdal-dev] Can OGR WFS driver take advantage of WFS Server
streaming?
Yingqi Tang
anakintang at gmail.com
Thu May 17 15:14:47 EDT 2012
Resend to the mailing list
---------- Forwarded message ----------
From: Yingqi Tang <anakintang at gmail.com>
Date: Thu, May 17, 2012 at 12:03 PM
Subject: Re: [gdal-dev] Can OGR WFS driver take advantage of WFS Server
streaming?
To: Even Rouault <even.rouault at mines-paris.org>
How can I do below through GDAL Python API?
wget -O - "http://testing.deegree.org/deegree-
wfs/services?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=app:Springs"
| ogrinfo -ro -al -q /vsistdin/
On Thu, May 17, 2012 at 9:47 AM, Even Rouault
<even.rouault at mines-paris.org>wrote:
>
> > > 2. Does the GML driver take url pointing to a GML?
> >
> > It can work with /vsicurl/http://something, provided that the server
> allows
> > partial downloading of arbitrary ranges of bytes within the file, which
> is
> > rarely the case with GetFeature() requests.
> >
> > In theory the WFS driver could be improved to use the capability of the
> GML
> > driver to read chunk by chunk, but there is some work to make that
> happen.
> > This would probably require a /vsicurl_streaming/ virtual file system
> where
> > basically only Read() requests would be available, thus not requiring the
> > server to have download range capabilities.
>
> Before considering the effort of implementing /vsicurl_streaming/ , I've
> improved a few things in the GML driver in trunk that allows to parse a GML
> stream that is a WFS GetFeature response document.
>
> So you can now try the following command on Linux :
>
> wget -O - "http://testing.deegree.org/deegree-
>
> wfs/services?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=app:Springs"
> | ogrinfo -ro -al -q /vsistdin/
>
> or
>
> wget -O - "http://testing.deegree.org/deegree-
>
> wfs/services?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=app:Springs"
> | ogr2ogr springs.shp /vsistdin/
>
> (or instead of "wget -O -", you can use "curl" depending on what is
> installed
> on your machine)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120517/6e30c0d7/attachment.html
More information about the gdal-dev
mailing list