Bug report #2158
OSM plugin: Python error on moving line
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Martin Dobias | ||
Category: | Python plugins | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Windows | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | fixed |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 12218 |
Description
While trying to move a line feature, a Python error always occurs:
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\osm\\map_tools\\OsmMoveMT.py", line 485, in canvasReleaseEvent
self.+finishFeatureMoving(deltaX,deltaY)
File "C:/OSGeo4W/apps/qgis-dev/./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:/programme/osgeo4w/apps/qgis-dev/./python/plugins\\osm\\OsmDatabaseManager.py", line 1401, in moveLine
File "c:/programme/osgeo4w/apps/qgis-dev/./python/plugins\\osm\\OsmDatabaseManager.py", line 1802, in changePointStatus
File "c:/programme/osgeo4w/apps/qgis-dev/./python/plugins\\osm\\OsmDatabaseManager.py", line 2503, in commit
OperationalError: SQL logic error or missing database
...
The OSM data was in a different directory than the project. Moving the OSM files to the project directory stopped the error occuring.
The line move however never occurs.
History
#1 Updated by Paolo Cavallini about 14 years ago
Can anyone confirm this?
#2 Updated by Volker Fröhlich over 13 years ago
Maybe related to #1944, also see my comment.
#3 Updated by Donkagen2 - over 13 years ago
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 (c5cd2930 (SVN r253):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
#4 Updated by Giovanni Manghi almost 13 years ago
- Target version changed from Version 1.7.0 to Version 1.7.4
#5 Updated by Paolo Cavallini over 12 years ago
- Affected QGIS version set to master
- Crashes QGIS or corrupts data set to No
- Target version changed from Version 1.7.4 to Version 1.8.0
#6 Updated by Paolo Cavallini about 12 years ago
- Target version changed from Version 1.8.0 to Version 2.0.0
#7 Updated by Martin Dobias over 11 years ago
- Pull Request or Patch supplied set to No
- Status changed from Open to Closed
- Resolution set to fixed
The new OpenStreetMap support coming in 2.0 does not allow editing and uploading of OSM data. The current plugin with editing support has been removed.