[gdal-dev] Checking for a NULL value in a field using OGR

Xavi Almolda xavi.almolda+OGR at gmail.com
Thu Jun 12 05:26:16 EDT 2008


Hello,

I am using OGR to read information from ESRI Shapefile files. I have a
problem with empty or null fields. I need to know when a value for a field
has not been set. Something like an isNull() or isSet() function.
For example, if I read a value as integer from a field that is empty, the
value returned is a 0. The same value is returned if the field has a value
of 0.

Is there any way to check for these empty or not set field values using OGR
?

Thank you,

Xavi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080612/7e865dfa/attachment.html


More information about the gdal-dev mailing list