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

Quantum GIS qgis at qgis.org
Wed Jun 30 18:04:00 EDT 2010


#2430: Random points ftools issue
------------------------------------------------+---------------------------
   Reporter:  dr                                |              Owner:  cfarmer      
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.5.0
  Component:  Python plugins and bindings       |            Version:  Trunk        
   Keywords:  Random points,ftools              |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------

Comment(by brushtyler):

 Replying to [comment:3 pcav]:
 > Got a different error:
 >
 > Traceback (most recent call last):
 > File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line
 > 124, in accept
 > self.randomize(inLayer, outPath, minimum, design, value)
 > File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line
 > 186, in randomize
 > else: points = self.loopThruPolygons(inLayer, value, design)
 > File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line
 > 227, in loopThruPolygons
 > value = sAtMap[index].toInt()[0]
 > UnboundLocalError: local variable 'index' referenced before assignment
 >
 > Versione Python:
 > 2.6.5 (r265:79063, Mar 18 2010, 23:59:47)
 > [GCC 4.4.3]
 >
 > Strangely enough, this does not happen with some PC, for unknown
 reasons.
 I've found the issue: the reason is the used language.
 I'm writing a patch.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2430#comment:5>
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