Re: [gdal-dev] GeoJSON coordinate values truncated to integers

2014-07-27 Thread Thomas Sevaldrud
Ah, that fixed it! Thanks :-) - Thomas On Sun, Jul 27, 2014 at 1:57 PM, Dmitriy Baryshnikov wrote: > Hi, > > This is usually according to the locale. Try set "C" locale like this. > > cha* old_locale = setlocale(LC_NUMERIC, "C"); > > before opening datasource > > and reset it back after readi

Re: [gdal-dev] GeoJSON coordinate values truncated to integers

2014-07-27 Thread Dmitriy Baryshnikov
Hi, This is usually according to the locale. Try set "C" locale like this. |cha*||old_locale =setlocale(LC_NUMERIC, "C"); before opening datasource and reset it back after reading all fetures ||setlocale(LC_NUMERIC, |old_locale); This is not the solution (I fixed it here http://trac.osge

[gdal-dev] GeoJSON coordinate values truncated to integers

2014-07-27 Thread Thomas Sevaldrud
(Sorry about the repost, I forgot the subject tag in the previous one..) Hi, I'm having a strange problem that appears to be related to the GeoJSON driver in GDAL 1.11.0 When reading a polygon geometry in geographical lat/lon coordinates, all my coordinate values are returned in integer degrees.

[gdal-dev] GeoJSON coordinate values truncated to integers

2014-07-26 Thread Thomas Sevaldrud
Hi, I'm having a strange problem that appears to be related to the GeoJSON driver in GDAL 1.11.0 When reading a polygon geometry in geographical lat/lon coordinates, all my coordinate values are returned in integer degrees. When using ogrinfo it dumps the coordinate values with correct decimals, s