Skip to content

Commit

Permalink
Do not add property with NULL value in GetFeature doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jan 12, 2023
1 parent 210860b commit 64c3651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wfs/qgswfsgetfeature.cpp
Expand Up @@ -1448,7 +1448,7 @@ namespace QgsWfs
for ( int i = 0; i < params.attributeIndexes.count(); ++i )
{
int idx = params.attributeIndexes[i];
if ( idx >= fields.count() )
if ( idx >= fields.count() || QgsVariantUtils::isNull( featureAttributes[idx] ) )
{
continue;
}
Expand Down Expand Up @@ -1545,7 +1545,7 @@ namespace QgsWfs
for ( int i = 0; i < params.attributeIndexes.count(); ++i )
{
int idx = params.attributeIndexes[i];
if ( idx >= fields.count() )
if ( idx >= fields.count() || QgsVariantUtils::isNull( featureAttributes[idx] ) )
{
continue;
}
Expand Down

0 comments on commit 64c3651

Please sign in to comment.