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

Quantum GIS qgis at qgis.org
Wed Apr 20 17:41:56 EDT 2011


#2790: Python error moving nodes with OSM plugin
------------------------------------------------+---------------------------
   Reporter:  cdavilam                          |              Owner:  wonder       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Python plugins and bindings       |            Version:  Trunk        
   Keywords:  OSM, move nodes                   |   Platform_version:  testing      
   Platform:  All                               |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------
Description changed by jef:

Old description:

> 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']

New description:

 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: <http://trac.osgeo.org/qgis/ticket/2790#comment:5>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS supporting GDAL/OGR, PostGIS, and GRASS formats, and Web Services


More information about the QGIS-trac mailing list