Bug report #8332

Updated by Even Rouault about 7 years ago

I'm using QGIS with Latvian locale. It's decimal separator is comma and thousands separator - point.



When creating new object, QGIS allows to use only point as a decimal separator (OK. So be it). Still in DBF file it's written with comma as a decimal separator and thus only QGIS sees a correct value. Other programs, like ogr2ogr and dbfdump see only whole part of number and drop anything after decimal separator (floor to integer with all 0's after comma). cat'ing DBF file is displaying correct comma separated values.



Attachment contains few points from a larger shapefile that is correctly readable only by QGIS.



QGIS versija 1.9.0-Master QGIS code revision e0a0a3a

Compiled against Qt 4.8.4 Running against Qt 4.8.4

Compiled against GDAL/OGR 1.10.0 Running against GDAL/OGR 1.10.0



cat comma_separated.dbf:

68,50010k

66,30010k



ogrinfo:

AUGSTUMS (Real) = 68.000

PIEZIMES (String) = 10k

AUGSTUMS (Real) = 66.000

PIEZIMES (String) = 10k

Back