Skip to content
Permalink
Browse files

No data are set to null for json format

  • Loading branch information
pblottiere committed Sep 28, 2020
1 parent 77cbd0c commit 5d18f9874405377885cef29b0b7389d7ef5015da
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -2306,7 +2306,13 @@ namespace QgsWms
{
const QDomElement attrElmt = attributesNode.at( j ).toElement();
const QString name = attrElmt.attribute( QStringLiteral( "name" ) );
const QString value = attrElmt.attribute( QStringLiteral( "value" ) );

QString value = attrElmt.attribute( QStringLiteral( "value" ) );
if ( value.isEmpty() )
{
value = QStringLiteral( "null" );
}

properties[name.toStdString()] = value.toStdString();
}

0 comments on commit 5d18f98

Please sign in to comment.
You can’t perform that action at this time.