Skip to content
Permalink
Browse files
WGIS WFS Server : GeoJSON Fid has to be a String
Adding "\"" befaore and after the fid for the GeoJSOn format.
  • Loading branch information
rldhont committed Feb 21, 2013
1 parent 5718a48 commit e9035d7ec7e3577492191295ba796e2b3bc99b42
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mapserver/qgswfsserver.cpp
@@ -1577,7 +1577,7 @@ QString QgsWFSServer::createFeatureGeoJSON( QgsFeature* feat, QgsCoordinateRefer
QString fStr = "{\"type\": \"Feature\",\n";

fStr += " \"id\": ";
fStr += mTypeName + "." + QString::number( feat->id() );
fStr += "\""+ mTypeName +"."+ QString::number( feat->id() ) +"\"";
fStr += ",\n";

QgsGeometry* geom = feat->geometry();

0 comments on commit e9035d7

Please sign in to comment.