Bug report #8895
Field calculator "Area"
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | - | ||
Affected QGIS version: | 2.0.1 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | invalid |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 17573 |
Description
I have a shapefile with two polygons - EPSG:27700 (British national grid).
- Enable editing
- Open field calculator
- "update existing field" (which is was set to a 10 width "real" at shapefile creation time)
- expression: $area
Result: One of them has a value of "0", the other one has a value of "243914090660769".
- save changes
- close table
- re open table
Result:
The one that was 0 is still 0. The other one has a new value: "-1397046367".
I guess maybe QGIS doesn't like the format I used for the number, but rather than provide erroneous results, QGIS should warn the user.
History
#1
Updated by Giovanni Manghi almost 11 years ago
- Resolution set to invalid
- Status changed from Open to Closed
this issue was already fixed in master. It does happen when you have OTFR enabled, regardless if you are really reprojecting something.