[QGIS-trac] Re: [Quantum GIS] #2430: Random points ftools issue
Quantum GIS
qgis at qgis.org
Thu May 20 02:39:10 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: HEAD
Resolution: | Keywords: Random points,ftools
Platform_version: | Platform: All
Must_fix: No | Status_info: 0
-----------------------------------------------------+----------------------
Comment (by 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.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2430#comment:3>
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