Skip to content

Commit

Permalink
WGIS WFS Server : GeoJSON Fid has to be a String
Browse files Browse the repository at this point in the history
Adding "\"" befaore and after the fid for the GeoJSOn format.
  • Loading branch information
rldhont committed Feb 21, 2013
1 parent 5718a48 commit e9035d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapserver/qgswfsserver.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e9035d7

Please sign in to comment.