you probably need to include the entire string, including the WFS: prefix
On Mon, Apr 14, 2014 at 10:53 AM, David Tran <david.t...@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@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev