[QGIS-trac] Re: [Quantum GIS] #2158: OSM plugin: Python error on
moving line
Quantum GIS
qgis at qgis.org
Fri Mar 4 10:42:29 EST 2011
#2158: OSM plugin: Python error on moving line
------------------------------------------------+---------------------------
Reporter: Donkagen2 | 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 | Platform_version: 1.4.0-59
Platform: Windows | Must_fix: No
Status_info: 0 |
------------------------------------------------+---------------------------
Comment(by Donkagen2):
Just tried it again with 1.6.0 (and trunk) and it generated this Python
error with version 0.5 of the OpenStreetMap plugin.
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\map_tools\OsmMoveMT.py",
line 485, in canvasReleaseEvent
self.__finishFeatureMoving(deltaX,deltaY)
File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\map_tools\OsmMoveMT.py",
line 730, in __finishFeatureMoving
affected=self.dbm.moveLine(self.movFeat,deltaX,deltaY,self.snapFeat,self.snapFeatType,self.snapVertexIx)
File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py",
line 1401, in moveLine
self.changePointStatus(nodeId,"N","U")
File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py",
line 1802, in changePointStatus
self.commit()
File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py",
line 2503, in commit
self.getConnection().commit()
OperationalError: SQL logic error or missing database
Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
QGIS version:
1.6.0-Copiapo Copiapo, exported
Python path: ['C:/OSGeo4W/apps/qgis/./python', 'C:/Documents and
Settings/Andrew/.qgis/python', 'C:/Documents and
Settings/Andrew/.qgis/python/plugins',
'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\OSGeo4W\\bin\\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\\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:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\ziplayers\\logic',
'C:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\ziplayers\\gui',
'C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools', 'F:/GIS
Data/Wiltshire Council/Dauntsey', 'C:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\ziplayers\\logic',
'C:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\ziplayers\\gui', 'C:\\Documents
and Settings\\Andrew\\.qgis\\python\\plugins\\fTools\\tools',
'C:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\imgshowhide\\logic',
'C:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\imgshowhide\\gui',
'C:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\openlayersov\\logic',
'C:\\Documents and
Settings\\Andrew\\.qgis\\python\\plugins\\openlayersov\\gui']
I was unable to move the line.
When trying to insert a point there was a similar error generated
Traceback (most recent call last):
File
"C:/OSGeo4W/apps/qgis/./python/plugins\osm\map_tools\OsmCreatePointMT.py",
line 216, in canvasReleaseEvent
(node,affected)=self.dbm.createPoint(newPoint,self.snapFeat,self.snapFeatType)
File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py",
line 454, in createPoint
self.commit()
File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py",
line 2503, in commit
self.getConnection().commit()
OperationalError: SQL logic error or missing database
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2158#comment:6>
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