Feature request #14624
Field Calculator: warn users when new field is not large enough to fit computed values
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Field calculator | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | No | Copied to github as #: | 22589 |
Description
I am using QGIS 2.8.2 on Ubuntu 12.
When I calculate area of a polygon, Field calculator provides option of creating new field. If I do not provide appropriate (large enough) output field width, field calculator trims the area values.
Example:
If I set output field width =3 and precision=2 and perform area calculation, any area bigger than 999.99 will be converted, thus, 1200.20 will be converted to 120.20.
When I use the option Vector - Geometry Tools – Export/Add geometry columns, the area calculations are correct.
History
#1 Updated by Giovanni Manghi over 8 years ago
- Category set to Field calculator
- Subject changed from Field Calculator new field issue to Field Calculator: warn users when new field is not large enough to fit computed values
- Tracker changed from Bug report to Feature request
#2 Updated by Giovanni Manghi over 7 years ago
- Easy fix? set to No