[QGIS-trac] [Quantum GIS] #2430: Random points ftools issue

Quantum GIS qgis at qgis.org
Wed Feb 10 23:00:18 EST 2010


#2430: Random points ftools issue
------------------------------------------------+---------------------------
   Reporter:  dr                                |              Owner:  borysiasty   
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.5.0
  Component:  Python plugins and bindings       |            Version:  HEAD         
   Keywords:  Random points,ftools              |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 1. Open shapefile: [http://gis-lab.info/data/vmap0/bounds-
 correct.7z];[[BR]]
 2. Try to put two random points with Random points tool;[[BR]]
 At result I get an error:[[BR]]

 {{{
 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)]
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2430>
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