mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
No data are set to null for json format
This commit is contained in:
parent
77cbd0c591
commit
5d18f98744
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user