Ticket #2509 (closed bug: fixed)
ftools: mean coordinate(s) tool with "unique ID" field returns wrong results
| Reported by: | lutra | Owned by: | cfarmer |
|---|---|---|---|
| Priority: | critical: causes crash or data corruption | Milestone: | Version 1.5.0 |
| Component: | Python plugins and bindings | Version: | Trunk |
| Keywords: | Cc: | gislab | |
| Platform Version: | Platform: | Debian | |
| Must Fix for Release: | Yes | Awaiting user input: | no |
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.
Change History
Note: See
TracTickets for help on using
tickets.