[gdal-dev] Re: gdal-dev Digest, Vol 82, Issue 20

2011-03-11 Thread kui yang
My operating system is Win7. Thanks a lot. I tried to add #ifdef WIN32 CPLSetConfigOption( "GDAL_FILENAME_IS_UTF8", "NO" ); #endif in GDALAllRegister. And it works. Now my GDAL1.8.0 work well with filename in Chinese. Really appreciate all you have done. Wish all of you have a nice day. 2011

Re: [gdal-dev] [OGR]Add a vertex to a feature

2011-03-11 Thread Even Rouault
Selon Mohamed Saâd HESSANE : > Thank's for your suggestion. > I test the OGRLayer::SetFeature() method, but it don't write the file after > that. I think the reason is what say Chaitanya (thank you) about the driver > which don't write until the handle is closed. You can try the OGRLayer::SyncToD

Re: [gdal-dev] [OGR]Add a vertex to a feature

2011-03-11 Thread Mohamed Saâd HESSANE
Thank's for your suggestion. I test the OGRLayer::SetFeature() method, but it don't write the file after that. I think the reason is what say Chaitanya (thank you) about the driver which don't write until the handle is closed. I think the best way is to write a CSV/VRT file. I'm trying now. 2011/

Re: [gdal-dev] [OGR]Add a vertex to a feature

2011-03-11 Thread Even Rouault
Selon Mohamed Saâd HESSANE : Mohamed, you can also use the OGRLayer::SetFeature() method to update an existing feature from a shapefile. But be aware that if you expand the geometry, its binary size will increase, so when you ask the geometry to be written by SetFeature(), the shape driver will w

Re: [gdal-dev] [OGR]Add a vertex to a feature

2011-03-11 Thread Chaitanya kumar CH
Mohamed, OGR's shapefile driver may not write the file to the disk until the handle is closed. If the data is going to me simple enough you should consider the CSV format. http://www.gdal.org/ogr/ogr_formats.html http://www.gdal.org/ogr/drv_csv.html 2011/3/11 Mohamed Saâd HESSANE > Hy list, >

[gdal-dev] [OGR]Add a vertex to a feature

2011-03-11 Thread Mohamed Saâd HESSANE
Hy list, I' m trying to add on the fly points comming from GPS to a shapefile. But the only way i find is to delete the feature from the shapefille, and create a new feature with the added point. There's another way? Thank you ___ gdal-dev mailing list gd