mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
WGIS WFS Server : GeoJSON Fid has to be a String
Adding "\"" befaore and after the fid for the GeoJSOn format.
This commit is contained in:
parent
5718a481de
commit
e9035d7ec7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user