<div dir="ltr">We're using GDAL v2.1.2 on Windows.<div><br><div>We use the GDAL library with MapWinGIS to connect to a PostGIS database.</div><div>When the PostGIS table has NULL values in integer, numeric or double fields and that data is read the returned values are 0 (zero), which is unexpected by us.</div><div><br></div><div>We useĀ Feature->GetFieldAsDouble() andĀ Feature->GetFieldAsInteger().</div><div>Am I correct that these function return 0 when the database value is NULL?</div><div>If not our implementation is wrong and I need to continue my search.</div><div>The documentation <a href="http://www.gdal.org/classOGRFeature.html#ab8a57c94e8bb8ffac5e7048d896254b4">http://www.gdal.org/classOGRFeature.html#ab8a57c94e8bb8ffac5e7048d896254b4</a> doesn't say either way.</div><div><br></div><div>Thanks,<div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">
<br>
Paul<br>
</div></div></div></div></div></div>
</div></div></div>