Bug report #3500
fTools: unsufficient field width for Area and Perimeter fields
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Alexander Bruy | ||
Category: | Processing/QGIS | ||
Affected QGIS version: | Regression?: | ||
Operating System: | All | Easy fix?: | |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 13560 |
Description
Hi,
I try to calculate area with ftools add geometry column. I have noted that in automatic new field “AREA” have this properties type=real lenght=10 > precision=6, this involve an error, some numbers are lost, because the Area number have lenght>10.
Example: if I calculate Piedmont area with Ftools obtain 2539107283
if I calculate the same Area , add new column (type real lenght=20
precision=5) and use calc field ($area) I obtain 25391072834.9971.
Associated revisions
extend default field width in fTools Export/Add Geometry column to fix #3500
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15739 c8812cc2-4d05-0410-92ff-de0c093fc19c
extend default field width in fTools Export/Add Geometry column to fix #3500
git-svn-id: http://svn.osgeo.org/qgis/trunk@15739 c8812cc2-4d05-0410-92ff-de0c093fc19c
History
#1 Updated by Giovanni Manghi over 13 years ago
it happens also under linux/trunk
#2 Updated by Alexander Bruy over 13 years ago
- Status changed from Open to In Progress
#3 Updated by Alexander Bruy over 13 years ago
Well, I extend field width for AREA, PERIMETER, XCOORD and YCOORD in 3c0f834e (SVN r15740).
But I think it is better to allow users select desired field width and precision. Unfortunately now we are in string and feature freeze, so I'll add this after 1.7
#4 Updated by Alexander Bruy over 13 years ago
- Resolution set to fixed
- Status changed from In Progress to Closed
#5 Updated by Giovanni Manghi over 7 years ago
The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.