[gdal-dev] OGR writing problem pl. help

2014-06-11 Thread user gdal
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

Re: [gdal-dev] OGR writing problem pl. help

2014-06-13 Thread Daniel Testa
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