Bug report #13391
GeoJSON not displayed correctly
|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|
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
#3 Updated by Jürgen Fischer over 4 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)