#5534 closed defect (fixed)
MapInfo File Driver read incorrect geometry from MIF/MID files on non english locale
Reported by: | bishop | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | MID/MIF, loclae |
Cc: |
Description
On Russian locale under Ubuntu 14.04 the MapInfo File Driver read geometry from MIF/MID files rounding all coordinates.
The driver stores all doubles in C locale with dot. And Russian locale use comma. I can use setlocale(LC_NUMERIC, "C") but GDAL have nice CPLAtofM method for such cases.
Change History (4)
follow-up: 2 comment:1 by , 9 years ago
comment:2 by , 9 years ago
Replying to uffek:
MIF/MID files should no be localized. It always uses . as decimal point.
I not said about format MIF/MID - but said about gdal driver, which have such error. If I have corrected input MIF/MID file with dots, and OGRGeometry will return rounded values, because my locale is Russian.
comment:3 by , 9 years ago
Milestone: | → 2.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Addressed by #5731
MIF/MID files should no be localized. It always uses . as decimal point.