You are right, OGR does support WFS driver: http://www.gdal.org/drv_wfs.html. I missed that functionality and naturally haven't tested it myself.
I've just made a quick test for WFSs listed here: https://www.gaia-gis.it/fossil/libspatialite/wiki?name=WFS. It seems we have limited support. I tested first 3 services and was able to see the data only from the second one. The first and the third returned unsupported types of geometry: wkbCurvedPolygon, wkbMultiSurface, so conversion to our Shape format failed. However it seems the underlying OGR provider works fine. Also I didn't like that the initial request is performed synchronously thus blocking UI. Perhaps it's possible to overcome this even with our current API, but I suppose it should be run asynchronously by default.
We plan an overhaul of the OgrLayer functionality maybe in a month as a part of MapWindow 5 effort: mapwindow5.codeplex.com (it's based on MapWinGIS ). Most likely I'll address these issues with WFS support as well, since we want it in the new app. Meanwhile if the particular service works for you - fine, why not to use it ))
Thanks for the info,
Sergei
I've just made a quick test for WFSs listed here: https://www.gaia-gis.it/fossil/libspatialite/wiki?name=WFS. It seems we have limited support. I tested first 3 services and was able to see the data only from the second one. The first and the third returned unsupported types of geometry: wkbCurvedPolygon, wkbMultiSurface, so conversion to our Shape format failed. However it seems the underlying OGR provider works fine. Also I didn't like that the initial request is performed synchronously thus blocking UI. Perhaps it's possible to overcome this even with our current API, but I suppose it should be run asynchronously by default.
We plan an overhaul of the OgrLayer functionality maybe in a month as a part of MapWindow 5 effort: mapwindow5.codeplex.com (it's based on MapWinGIS ). Most likely I'll address these issues with WFS support as well, since we want it in the new app. Meanwhile if the particular service works for you - fine, why not to use it ))
Thanks for the info,
Sergei