Bug report #11861
|Affected QGIS version:||2.6.0||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 #:||20076|
in qgis 2.6 the $area calculation from field calculator returns errors for every record: it returns always -92.2337203685478 sq_mt. The layer was created with qgis 2.4 and i work in EPSG 32632.
In qgis 2.4 it was ok.
Arcgis calculates the right value.
If i use "vector/geometry tools/export_add geometry columns" it stops at 87% of elaboration.
#4 Updated by Giovanni Manghi almost 6 years ago
- Resolution set to invalid
- Status changed from Feedback to Closed
The "AREA" field in the shape you attached is of type double with length 19 with 16 of those spaces for the decimal part. This means that in this column you can only accommodate numbers with 2 integer numbers. If you calculate the area in hectares ($area/10000) you will see that the values are ok because the numbers are small enough to be stored there. If compute the area in sq m then you see strange values: this behavior can be improved but it has an explanation.
If you compute the area in new columns (with the proper length) there are no problems.