[gdal-dev] Read WFS Features

Chaitanya kumar CH chaitanya.ch at gmail.com
Fri May 27 07:01:31 EDT 2011


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.aparicio at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110527/3f78ac2d/attachment.html


More information about the gdal-dev mailing list