Victor, Can you test your URL with the ogrinfo utility? It is showing some detailed error. Invalid "TYPENAME" parameter. No binding for prefix "ideewfs".
On Fri, May 27, 2011 at 2:06 PM, vickarasu <victor.apari...@hotmail.com>wrote: > Hello, this is my first post in the mail list and this is the very first > time > I develope with GDAL/OGR libraries... > > My problem is that I want to connect to a WFS server in C# and read all the > features of a layer. I can read the WFS DataSource and the layer definition > but when I want to read the layer´s features I get a server error ("Error > returned by server : Received problem 2 in the chunky parser (56)"). This > is > the code: > > OSGeo.OGR.Driver wfsDriver = Ogr.GetDriverByName("WFS"); > OSGeo.OGR.DataSource wfs = > wfsDriver.Open("http://www.idee.es/IDEE-WFS/ogcwebservice?SERVICE=WFS", > 0); > OSGeo.OGR.Layer layer = wfs.GetLayerByIndex(1); > layer.ResetReading(); > OSGeo.OGR.Feature feature = layer.GetNextFeature(); > > Any help would be appreciate. Thank you very much in advance. > > Víctor > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Read-WFS-Features-tp6410186p6410186.html > Sent from the GDAL - Dev mailing list archive at Nabble.com. > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev