Ticket #2430 (closed bug: fixed)
Random points ftools issue
| Reported by: | dr | Owned by: | cfarmer |
|---|---|---|---|
| Priority: | major: does not work as expected | Milestone: | Version 1.5.0 |
| Component: | Python plugins and bindings | Version: | Trunk |
| Keywords: | Random points,ftools | Cc: | dr, gislab, alexbruy |
| Platform Version: | Platform: | All | |
| Must Fix for Release: | No | Awaiting user input: | no |
Description
1. Open shapefile: http://gis-lab.info/data/vmap0/bounds-correct.7z;
2. Try to put two random points with Random points tool;
At result I get an error:
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:\OSGeo4W\apps\qgis-dev\python\plugins\fTools\tools\doRandPoints.py", line 123, in accept
self.randomize(inLayer, outPath, minimum, design, value, self.progressBar)
File "C:\OSGeo4W\apps\qgis-dev\python\plugins\fTools\tools\doRandPoints.py", line 209, in randomize
else: bound = self.createSinglePolygon(inLayer, progressBar)
File "C:\OSGeo4W\apps\qgis-dev\python\plugins\fTools\tools\doRandPoints.py", line 155, in createSinglePolygon
geom = geom.combine(QgsGeometry( feat.geometry() ))
AttributeError: 'NoneType' object has no attribute 'combine'
Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
