Skip to content

Commit

Permalink
Update python/core/additions/qgsfeature.py
Browse files Browse the repository at this point in the history
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
  • Loading branch information
nyalldawson and rouault committed Jul 18, 2024
1 parent 2f10455 commit 32c46db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/core/additions/qgsfeature.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def mapping_feature(feature):
geom = feature.geometry()
properties = {k: None if (v is None or isinstance(v, QVariant) and v.isNull()) else v for k, v in feature.attributeMap().items()}
properties = {k: None if (v is None or (isinstance(v, QVariant) and v.isNull())) else v for k, v in feature.attributeMap().items()}
return {'type': 'Feature',
'properties': properties,
'geometry': geom.__geo_interface__}

0 comments on commit 32c46db

Please sign in to comment.