Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#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)

comment:1 by uffek, 10 years ago

MIF/MID files should no be localized. It always uses . as decimal point.

in reply to:  1 comment:2 by bishop, 10 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 Even Rouault, 9 years ago

Milestone: 2.0
Resolution: fixed
Status: newclosed

Addressed by #5731

comment:4 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.