[gdal-dev] OGR writing problem pl. help
Daniel Testa
danieltesta at suremptec.com.ar
Fri Jun 13 07:43:59 PDT 2014
Hi,
- try adding the following line:
outlayer->SetFeature(outfeature);
after:
outfeature->SetField("production", FALL->Production);
ends up being:
[...]
outfeature->SetField("production", FALL->Production);
outlayer->SetFeature(outfeature);
[...]
make sure OGRDataSource::DestroyDataSource(outsource) is executed
(it "will ensure all data is correctly flushed.")
- You may, also, want to check the following line:
prfield.SetWidth(32);
try with SetPrecision instead (since you are adding a OFTReal field):
prfield.SetPrecision(32);
- you could try with outlayer->GetFeatureCount(TRUE)
(check the doc at http://www.gdal.org/classOGRLayer.html)
Hope it helps.
Regards,
Daniel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140613/33dd02eb/attachment.html>
More information about the gdal-dev
mailing list