No data are set to null for json format

This commit is contained in:
Blottiere Paul 2020-09-28 15:06:47 +02:00
parent 77cbd0c591
commit 5d18f98744

View File

@ -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();
}