[QGIS-trac] [Quantum GIS] #2502: Range of bugs/enhancements for Random Selection tool

Quantum GIS qgis at qgis.org
Sat Mar 6 20:39:34 EST 2010


#2502: Range of bugs/enhancements for Random Selection tool
--------------------------------+-------------------------------------------
   Reporter:  gislab            |              Owner:  nobody       
       Type:  bug               |             Status:  new          
   Priority:  minor: annoyance  |          Milestone:  Version 1.5.0
  Component:  Vectors           |            Version:  HEAD         
   Keywords:                    |   Platform_version:               
   Platform:  Windows           |           Must_fix:  No           
Status_info:  0                 |  
--------------------------------+-------------------------------------------
 1. Tool window is modal (can use other tools when tool window is open). Is
 that really necessary? (also the case for some other tools, like Random
 Selection within subsets

 2. Tool window is replicatable. Click 10 times on this tool, will have 10
 tool windows.

 3. Finally, if the layer is switched off after opening tool window, throws
 an error (also the case with Random Sel within Subsets and related to
 modality):


 {{{
     An error has occured while executing Python code:

     Traceback (most recent call last):
       File "c:\OSGeo4w\apps\qgis-
 dev\python\plugins\fTools\tools\doRandom.py", line 45, in accept
         value = int(round((value / 100.0000), 4) * layer.featureCount())
     AttributeError: 'NoneType' object has no attribute 'featureCount'

     Python version:
     2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]

     Python path: ['c:/OSGeo4w/apps/qgis-dev/./python', 'C:/Documents and
 Settings/DUBININ/.qgis//python', 'C:/Documents and
 Settings/DUBININ/.qgis//python/plugins', 'c:/OSGeo4w/apps/qgis-
 dev/./python/plugins', 'c:\\OSGeo4w\\apps\\gdal-16\\pymod', 'C:\\',
 'C:\\WINDOWS\\system32\\python25.zip',
 'c:\\OSGeo4w\\apps\\Python25\\DLLs', 'c:\\OSGeo4w\\apps\\Python25\\lib',
 'c:\\OSGeo4w\\apps\\Python25\\lib\\plat-win',
 'c:\\OSGeo4w\\apps\\Python25\\lib\\lib-tk', 'c:\\OSGeo4w\\apps\\qgis-
 dev\\bin', 'c:\\OSGeo4w\\apps\\Python25',
 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages',
 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\win32',
 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\win32\\lib',
 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\Pythonwin',
 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
 'c:\\OSGeo4w\\apps\\qgis-dev\\python\\plugins\\fTools\\tools',
 'C:\\Documents and
 Settings\\DUBININ\\.qgis\\python\\plugins\\GdalTools\\tools',
 'C:\\Documents and Settings\\DUBININ\\.qgis\\python\\plugins\\GdalTools']
 }}}

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