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(outso
Dear all,
I have a shape file and programmatically I have to write to an attribute
named 'production'. I use Visual; C++ 2005. I proceeded like this:
const char *DriverName = "ESRI Shapefile";
OGRSFDriver *Driver;
OGRRegisterAll();
Driver = OGRSFDriverRegistrar::GetRegistrar( )->GetDriverByName(Dr