Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftools: mean coordinate tool returns error when used on spatialite vector #12568

Closed
qgib opened this issue Mar 7, 2010 · 3 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 7, 2010

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 2508

Redmine category:python_plugins
Assignee: cfarmer -


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]


@qgib
Copy link
Contributor Author

qgib commented Apr 14, 2010

Author Name: Alexander Bruy (@alexbruy)


Can't reproduce with my data. Can you attach a sample and explain all actions to get this error?

@qgib
Copy link
Contributor Author

qgib commented Apr 14, 2010

Author Name: Giovanni Manghi (@gioman)


Hi,

Now I cannot test again with a more recent code, but then I:

*) used the spatialite sample dataset (you find it in the SL site)

*) tested the "regions" layer with the "mean coordinate" tool available in the "vector" menu

@qgib
Copy link
Contributor Author

qgib commented May 5, 2010

Author Name: Alexander Bruy (@alexbruy)


Can't reproduce with [[SpatiaLite]] sample data and with my own spatialite data. Reopen if necessary


  • resolution was changed from to worksforme
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant