[gdal-dev] How to use OGROpen with WFS?
Etienne Tourigny
etourigny.dev at gmail.com
Mon Apr 14 08:02:48 PDT 2014
you probably need to include the entire string, including the WFS: prefix
On Mon, Apr 14, 2014 at 10:53 AM, David Tran <david.tran at hsr.ch> wrote:
> Hi
>
> I tried this:
>
> OGRRegisterAll();
>> sourceName = "http://maps.zh.ch/wfs/FnsNSWFS";
>> sourceData = OGROpen( sourceName.c_str(), 0, NULL );
>> if(sourceData == NULL) {
>> printf("Open failed.\n");
>> exit(1);
>> }
>>
>
> and it ends with:
>
> ERROR 4: Failed to read GeoJSON data
>> Open failed.
>>
>
> Does anybody has a proper example?
>
> ogrinfo -ro -so WFS:"http://maps.zh.ch/wfs/FnsNSWFS" shows something,
> therefore I think that it is my source code.
>
> Thanks in advance.
>
> David
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140414/e6e29b79/attachment.html>
More information about the gdal-dev
mailing list