Re: [gdal-dev] Bug in SetField

2011-02-24 Thread Even Rouault
Le jeudi 24 février 2011 18:17:13, Mohammed Rashad a écrit : > rashadkm@rashad-laptop:~/wt/examples/vrgeo/shp$ ogrinfo -so -al layerff.shp > ERROR 4: Unable to open layerff.shp or layerff.SHP. > Had to open data source read-only. > INFO: Open of `layerff.shp' > using driver `ESRI Shapefile' s

Re: [gdal-dev] Bug in SetField

2011-02-24 Thread Mohammed Rashad
rashadkm@rashad-laptop:~/wt/examples/vrgeo/shp$ ogrinfo -so -al layerff.shp ERROR 4: Unable to open layerff.shp or layerff.SHP. Had to open data source read-only. INFO: Open of `layerff.shp' using driver `ESRI Shapefile' successful. Layer name: layerff Geometry: Polygon Feature Count: 5 Exte

Re: [gdal-dev] Bug in SetField

2011-02-24 Thread Frank Warmerdam
On 11-02-24 11:56 AM, Mohammed Rashad wrote: my code field - fieldname is of string type and 0th field poFeature->SetField("fieldname","value"); poFeature->GetFieldAsString(0); returns v instead of value; I dont know is it bug or my problem but I opened the shapefile in OpenJUMP and QGIS bo

[gdal-dev] Bug in SetField

2011-02-24 Thread Mohammed Rashad
my code field - fieldname is of string type and 0th field poFeature->SetField("fieldname","value"); poFeature->GetFieldAsString(0); returns v instead of value; I dont know is it bug or my problem but I opened the shapefile in OpenJUMP and QGIS both shows field names as only v instead of value