Ticket #2508 (closed bug: worksforme)
ftools: mean coordinate tool returns error when used on spatialite vector
| Reported by: | lutra | Owned by: | cfarmer |
|---|---|---|---|
| Priority: | major: does not work as expected | Milestone: | Version 1.5.0 |
| Component: | Python plugins and bindings | Version: | Trunk |
| Keywords: | Cc: | gislab, alexbruy | |
| Platform Version: | Platform: | Debian | |
| Must Fix for Release: | Yes | Awaiting user input: | no |
Description
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]
Change History
Note: See
TracTickets for help on using
tickets.