This project has moved and is read-only. For the latest updates, please go here.


Dec 14, 2011 at 7:31 AM

I want to edit mapinfo tables with osgeo.ogr. when i use "driver.Open(path,1)" method for update, it returns null. 
If I use "0" for update in Open method, I get mapinfo drivers but not updatable. 
Codes : 

OSGeo.OGR.Driver ogrDriver = OSGeo.OGR.Ogr.GetDriverByName("MapInfo File");
OSGeo.OGR.DataSource myOgrDataSource1 = ogrDriver.Open(path, 1); // it returns null
if (myOgrDataSource1 != null)
OSGeo.OGR.Layer myOgrLayer = myOgrDataSource1.GetLayerByIndex(0);
int i= myOgrLayer.SetFeature(myOgrFeature);
catch(Exception asd)
{ }

Dec 19, 2011 at 7:30 AM

This will not work, see:
Since modification of existing files is not supported you may have to clone the whole dataset and in the process of doing that modify the data.

Hth FObermaier