<div dir="ltr">you probably need to include the entire string, including the WFS: prefix</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 10:53 AM, David Tran <span dir="ltr"><<a href="mailto:david.tran@hsr.ch" target="_blank">david.tran@hsr.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I tried this:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OGRRegisterAll();<br>
sourceName = "<a href="http://maps.zh.ch/wfs/FnsNSWFS" target="_blank">http://maps.zh.ch/wfs/<u></u>FnsNSWFS</a>";<br>
sourceData = OGROpen( sourceName.c_str(), 0, NULL );<br>
if(sourceData == NULL) {<br>
printf("Open failed.\n");<br>
exit(1);<br>
}<br>
</blockquote>
<br>
and it ends with:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ERROR 4: Failed to read GeoJSON data<br>
Open failed.<br>
</blockquote>
<br>
Does anybody has a proper example?<br>
<br>
ogrinfo -ro -so WFS:"<a href="http://maps.zh.ch/wfs/FnsNSWFS" target="_blank">http://maps.zh.ch/wfs/<u></u>FnsNSWFS</a>" shows something, therefore I think that it is my source code.<br>
<br>
Thanks in advance.<br>
<br>
David<br>
______________________________<u></u>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br></div>