[gdal-dev] OGR read WFS collection

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Wed Dec 17 08:37:15 PST 2014


Hello
I successfully used this code to create a datasource from a URL
step 1- wfs_drv = ogr.GetDriverByName('WFS')
step 2- wfs_ds = wfs_drv.Open('WFS:' + url)
step 3- Then I parsed the result

I need to create another script but in input I get the result of a WFS 
query. So I need to parse this result (Wfs: FeatureCollection)

I tried to create a DataSource from the WFS:FeatureCollection without 
success.
I see that ogr.Open needs a filename, not a string.

How do I create that kind of DataSource?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141217/d5ad1e08/attachment.html>


More information about the gdal-dev mailing list