Bug report #12227
QGis Server - WFS - GeoJSON and escaping backslash
|Affected QGIS version:||2.6.1||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20415|
I had a shapefile I made available as a WFS-service with QGis Server.
OpenLayers 3 kept giving me an error. Turns out I was using a path in the shapefile, D:\\location-on-disk , that was giving us some trouble.
It seems like the JSON spec would require that it is properly escaped.
So the GeoJSON contains something like "myProperty" : "D:\\location-on-disk" instead of "myProperty" : "D:\\\\location-on-disk".