Bug report #2509
ftools: mean coordinate(s) tool with "unique ID" field returns wrong results
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | cfarmer - | ||
Category: | Python plugins | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | Debian | Easy fix?: | No |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 12569 |
Description
To test I used the "regions" polygon layer from the spatialite sample dataset, saved as shapefile.
Using as "unique ID field" the "name" field I would expect to tool to calculate the mean coordinate of each region (as the resulting table of attributes seems to indicate), but the mean coordinates are wrong, and this is easy to understand from the position of the resulting points. You can also save a single region as a single polygon and calculate its mean coordinate, you'll see different results.
Tested under linux ubuntu 9.10 and qgis trunk.
Associated revisions
Means for unique values now properly calculated. Fixes #2509.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13030 c8812cc2-4d05-0410-92ff-de0c093fc19c
Means for unique values now properly calculated. Fixes #2509.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13030 c8812cc2-4d05-0410-92ff-de0c093fc19c
History
#1 Updated by cfarmer - almost 15 years ago
- Resolution set to fixed
- Status changed from Open to Closed
Fixed in 428b7281 (SVN r13031).
-Carson