[QGIS-trac] [Quantum GIS] #2508: ftools: mean coordinate tool
returns error when used on spatialite vector
Quantum GIS
qgis at qgis.org
Sun Mar 7 05:08:25 EST 2010
#2508: ftools: mean coordinate tool returns error when used on spatialite vector
------------------------------------------------+---------------------------
Reporter: lutra | Owner: cfarmer
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.5.0
Component: Python plugins and bindings | Version: HEAD
Keywords: | Platform_version:
Platform: Debian | Must_fix: Yes
Status_info: 0 |
------------------------------------------------+---------------------------
Tested on qgis trunk, Ubuntu 9.10 and with the spatialite sample dataset.
With he same vector (regions) saved as shapefile the tool works ok.
{{{
An error has occured while executing Python code:
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/fTools/tools/doMeanCoords.py", line
62, in accept
self.compute(inName, outPath, self.weightField.currentText(),
self.sizeValue.value(), self.uniqueField.currentText())
File "/usr/share/qgis/python/plugins/fTools/tools/doMeanCoords.py", line
150, in compute
cx = cx / sumWeight
ZeroDivisionError: float division
Python version:
2.6.4 (r264:75706, Dec 7 2009, 19:02:09)
[GCC 4.4.1]
}}}
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2508>
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