[QGIS-trac] [Quantum GIS] #2509: ftools: mean coordinate(s) tool
with "unique ID" field returns wrong results
Quantum GIS
qgis at qgis.org
Sun Mar 7 05:27:28 EST 2010
#2509: ftools: mean coordinate(s) tool with "unique ID" field returns wrong
results
---------------------------------------------------------+------------------
Reporter: lutra | Owner: cfarmer
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.5.0
Component: Python plugins and bindings | Version: HEAD
Keywords: | Platform_version:
Platform: Debian | Must_fix: Yes
Status_info: 0 |
---------------------------------------------------------+------------------
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.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2509>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list