Bug report #13601
error calculating area for polygons when otf reprojection is on and the CRS is Indian 1960 48N
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | Nyall Dawson | ||
Category: | Projection Support | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21643 |
Description
I have just been able to reproduce the circumstances of a serious issue leading to area calculation not working when on-the-fly (OTF) reprojection is switched on. The gist of it is that when OTF reprojection is on, layers with CRS being Indian 1960 48N (and most probably other CRSes), area calculation (in the identity panel) is broken and returns wrong values. Similarly, if polygon features are labeled as $area, nothing is returned.
Steps to reproduce:- Launch QGIS
- Add the concessions.zip layer to the project (CRS: Indian 1960 48N)
- At this stage, OTF is off; check the area of a polygon via the identify tool to verify it works
- Turn OTF on
- Check the area of the same polygon via the identify tool to confirm the value is broken (values such as 0.0000, or 0.0008 m2, etc.)
Associated revisions
Fix area calculation when OTF active and no ellipsoid (fix #13601)
History
#1 Updated by Mathieu Pellerin - nIRV about 9 years ago
- File deleted (
licadho-land-concessions-2015.zip)
#2 Updated by Mathieu Pellerin - nIRV about 9 years ago
- File concessions.zip added
#3 Updated by Mathieu Pellerin - nIRV about 9 years ago
- Subject changed from error calculating area for polygons when otf reprojection automatically switched on via new layer crs != project crs to error calculating area for polygons when otf reprojection is on and the CRS is Indian 1960 48N
- Priority changed from High to Severe/Regression
- Target version changed from Future Release - High Priority to Version 2.12
#4 Updated by Nyall Dawson about 9 years ago
- Assignee set to Nyall Dawson
Ouch. Got it - thanks for reporting!
#5 Updated by Nyall Dawson about 9 years ago
- Status changed from Open to Closed
Fixed in changeset 5654eeca5542a7cdba703979ad931409df3f4168.