Skip to content

Commit

Permalink
No data are set to null for json format
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Sep 28, 2020
1 parent 77cbd0c commit 5d18f98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit 5d18f98

Please sign in to comment.