0

I have such a geojson file and drag'n'drop it into QGIs:

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"osm","desc":"osm"},"geometry":{"type":"LineString","coordinates":[[2.1377253,13.4948849],[2.0954585,13.519405],[2.0966719,13.5244217],[2.084995,13.5268805],[2.0043786,13.5910286],[1.9499489,13.6159676],[1.9244407,13.6178174],[1.8981672,13.6418839],[1.8588131,13.6542176],[1.8528482,13.6651903],[1.8221349,13.6777434],[1.8116032,13.691144],[1.7824779,13.7051777],[1.657833,13.7973294]  ... [0.5005446,15.6685503]]}}]}

When loading it in QGIS 2.8.6 I get very strange results:

enter image description here

(very low zoom)

In leaflet the data looks like this:

enter image description here

So it seems like the data is important on a resolution of several 100 kilometers.

Why is that ?

3
  • 2
    2.8 is very old - I'd suggest updating to 2.18 and testing
    – ndawson
    Commented Apr 21, 2018 at 18:18
  • 1
    i'm guessing that the coords are being treated as int, it looks as if coords have been rounded to nearest degree? definitely try a newer version, if it also happens with newer version the OSM query or feature ID would be useful too.
    – Steven Kay
    Commented Apr 21, 2018 at 20:04
  • Wondering if there is an closed QGIS bugreport for this ... trying to update, did not manage it yet on Ubuntu xenial.
    – Alex
    Commented Apr 22, 2018 at 10:09

1 Answer 1

2

It is related to this bug report:

https://issues.qgis.org/issues/11587

export LANG=C
export LC_ALL=C
qgis

solves the problem, even without upgrading QGIS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.