Bug report #13391
GeoJSON not displayed correctly
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Vectors | ||
Affected QGIS version: | 2.8.1 | Regression?: | No |
Operating System: | Ubuntu | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21443 |
Description
All features in the attached GeoJSON file (generated with fiona) are squares but when loading into QGIS 2.8.1, some of them are distorted and displayed as rectangles. Zooming in or out showed the same distortions.
The Shapefile version is displayed correctly. To be sure the GeoJSON file is fine, I also wrote a short script asserting that the features heights and widths are equal.
Interestingly, after loading the Shapefile, the originally loaded GeoJSON was then displayed correctly and in alignment to the control Shapefile.
To reproduce:- load GeoJSON
- highlight one (non-square) rectangle via identify before loading Shapefile
- "Save as" Shapefile and load to map, on top of GeoJSON
- highlighted geometry is not aligned to Shapefile geometry
- turn off Shapefile
- GeoJSON now displayed correctly
Cheers
Related issues
History
#1 Updated by Jukka Rahkonen about 9 years ago
I can't reproduce with QGIS 2.10.1. Could you also have a try this version?
#2 Updated by Joachim Ungar about 9 years ago
I'm using the ubuntugis-unstable repo where only 2.8.1 is available.
Maybe the issue was already resolved for 2.10. I'll have an eye open for this when ubuntugis updates to 2.10 and come back with more information.
Thanks!
#3 Updated by Jürgen Fischer about 9 years ago
Joachim Ungar wrote:
I'm using the ubuntugis-unstable repo where only 2.8.1 is available.
Maybe the issue was already resolved for 2.10. I'll have an eye open for this when ubuntugis updates to 2.10 and come back with more information.
Use our ubuntugis repositories - they have 2.8.3 and 2.10.1 (see http://qgis.org/de/site/forusers/alldownloads.html#debian-ubuntu)
#4 Updated by Joachim Ungar about 9 years ago
- File qgis_geojson.png added
Thanks - however, the issue remains after the update (see screenshot).
#5 Updated by Jukka Rahkonen about 9 years ago
I can't see anything like that on Windows. Does turning OTF off change anything?
#6 Updated by Saber Razmjooei about 9 years ago
- Status changed from Open to Closed
Checked in QGIS and all works fine. Problem with the OTF.
#7 Updated by Martin Weis almost 9 years ago
This is a duplicate of #11587