[QGIS-trac] [Quantum GIS] #2790: Python error moving nodes with OSM plugin

Quantum GIS qgis at qgis.org
Mon Jun 7 12:09:18 EDT 2010


#2790: Python error moving nodes with OSM plugin
------------------------------------------------+---------------------------
   Reporter:  cdavilam                          |              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:  OSM, move nodes                   |   Platform_version:  testing      
   Platform:  Debian                            |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 When using "Move feature" tool, after selecting a node, any mouse movement
 causes a Python error:

 Traceback (most recent call last):
   File
 "/usr/local/qgis/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py",
 line 587, in canvasMoveEvent
     (deltaX,deltaY)=self.__getDeltaForPoint(event)    # snapping is done
 in this function
   File
 "/usr/local/qgis/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py",
 line 648, in __getDeltaForPoint
     (self.snapFeat,self.snapFeatType)=self.dbm.findFeature(snappedPoint)
 TypeError: 'NoneType' object is not iterable

 Python version:
 2.6.5+ (release26-maint, May 30 2010, 13:56:50)
 [GCC 4.4.4]


 QGIS version:
 1.5.0-Trunk Trunk, 13635M

 Python path: ['/usr/local/qgis/share/qgis/python',
 '/home/carlos/.qgis/python', '/home/carlos/.qgis/python/plugins',
 '/usr/local/qgis/share/qgis/python/plugins', '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-
 packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10',
 '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-
 packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0',
 '/usr/local/lib/python2.6/dist-packages',
 u'/home/carlos/.qgis//python/plugins',
 '/usr/local/qgis/share/qgis/python/plugins/fTools/tools']

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