Bug report #12555

geojson open with bad result with all data on same point, wrong coordinates, if some system locale setting is not in en

Added by Marco Braida about 9 years ago. Updated over 7 years ago.

Category:Data Provider/OGR
Affected QGIS version:2.8.1 Regression?:No
Operating System:linux Easy fix?:No
Pull Request or Patch supplied:No Resolution:up/downstream
Crashes QGIS or corrupts data:No Copied to github as #:20696


Here the complete already done test...


Thank you

Related issues

Duplicates QGIS Application - Bug report #11587: all coordinates truncated to integer values when system h... Closed 2014-11-06


#1 Updated by Giovanni Manghi about 9 years ago

  • Status changed from Open to Feedback

Hi, can you please detail what this issue is about? thanks.

#2 Updated by Marco Braida about 9 years ago

The problem here is with italian locale settings on reading/rendering geojson files (the files to test are in the links below please try the xxxpoints.geojson)
all geometries of geojson are collapsed into a single point, the geojson file is valid.

If i change locale settings, to english in my env, then after logoff and logon, the same geojson file is rendered well in qgis, so must be some related to numeric format in qgis on importing geojson.

The geojson to load and test in qgis are small files in Dropbox here https://db.tt/hjXHQTmP

and the points file on geojson.io is here (well rendered) http://bl.ocks.org/d/79b541226cecf3b46307

http://geojsonlint.com/ parse the tmpXXXXX_points.geojson . file without any issue



#3 Updated by Jürgen Fischer almost 9 years ago

  • Status changed from Feedback to Open
  • Category set to Data Provider/OGR

#4 Updated by Henrik Uggla over 8 years ago

I'm having this problem as well. I'm using Qgis 2.8.2 on Ubuntu 12.04 with locale set to swedish. {"type":"Feature","properties":{"info":""},"geometry":{"type":"Point","coordinates":[13.9,55.9]}} is rendered at 13.0,55.0.
It could be caused by the fact that in swedish the decimal separator is "," and not ".".

If I change os environment setting LC_NUMERIC from sv_SE.UTF-8 to en_US.UTF-8 and restart Qgis it works as expected.

#5 Updated by Martin Weis over 8 years ago

This is a duplicate of #11587

#6 Updated by Even Rouault over 7 years ago

  • Resolution set to up/downstream
  • Status changed from Open to Closed

This has been fixed in GDAL 2.0

Also available in: Atom PDF