RE: [gdal-dev] RE: Editing KML files using ogr_csharp.dll

2011-12-06 Thread Pouliot, Christopher (DNR)
Ok, thanks. I'll have to check that out. -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Monday, December 05, 2011 10:36 AM To: Kyle Shannon Cc: Pouliot, Christopher (DNR); gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] RE: Editing KML files

[gdal-dev] RE: Editing KML files using ogr_csharp.dll

2011-12-05 Thread Pouliot, Christopher (DNR)
Yes, I'm using the development version (1.9) from gisinternals.com/sdk. I need this version because I'm taking advantage of its ability to read/write File Geodatabases. From: Kyle Shannon [mailto:kshan...@gcs-research.com] Sent: Monday, December 05, 2011 10:09 AM To: Pouliot, Christopher (DNR);

Re: [gdal-dev] RE: Editing KML files using ogr_csharp.dll

2011-12-05 Thread Even Rouault
Selon Kyle Shannon : > Can you report your gdal version and where you got it from? Is it from > gisinternals.com/sdk, or did you build it yourself? The old KML driver only supports appending features to a file it has just created. It can't work on an existing KML file that is re-opened afterward

[gdal-dev] RE: Editing KML files using ogr_csharp.dll

2011-12-05 Thread Kyle Shannon
Can you report your gdal version and where you got it from? Is it from gisinternals.com/sdk, or did you build it yourself? From: Pouliot, Christopher (DNR) [mailto:christopher.poul...@state.mn.us] Sent: Monday, December 05, 2011 9:04 AM To: Kyle Shannon; gdal-dev@lists.osgeo.org Subject: RE: Edi

[gdal-dev] RE: Editing KML files using ogr_csharp.dll

2011-12-05 Thread Pouliot, Christopher (DNR)
Thanks for the response Kyle. I do use the CreateDataSource() to create a new KML. But am unable to open an existing KML for editing using the Open() code I specified below. Chris From: Kyle Shannon [mailto:kshan...@gcs-research.com] Sent: Monday, December 05, 2011 9:54 AM To: Pouliot, Chris

[gdal-dev] RE: Editing KML files using ogr_csharp.dll

2011-12-05 Thread Kyle Shannon
Chris, I don' know OGR very well, but I see a few issues. I also am not sure about the c# bindings, I believe they are pretty complete though. '''OSGeo.OGR.Driver drv = Ogr.GetDriverByName("KML"); DataSource ds = drv.Open("c:\\temp\\mykml.kml", 1);''' Open() opens existing files, you need to u