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.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to