You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Feature::field returns Result<FieldValue>, but fields can be null. When this is the case, the default value for the FieldValue variant is returned. This makes it difficult to distinguish e.g. a legitimate Integer 0 value from the absence of a value.
I am not very familiar with the GDAL lib, but just taking a quick one through, it looks like maybe the OGR_F_IsFieldNull function could be used to see if a field is null first, and if so, return None.
The text was updated successfully, but these errors were encountered:
Currently,
Feature::field
returnsResult<FieldValue>
, but fields can be null. When this is the case, the default value for theFieldValue
variant is returned. This makes it difficult to distinguish e.g. a legitimate Integer 0 value from the absence of a value.I am not very familiar with the GDAL lib, but just taking a quick one through, it looks like maybe the
OGR_F_IsFieldNull
function could be used to see if a field is null first, and if so, returnNone
.The text was updated successfully, but these errors were encountered: