Bug report #2509
ftools: mean coordinate(s) tool with "unique ID" field returns wrong results
|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|
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.