[Qgis-developer] OSM plugin errors

Paolo Cavallini cavallini at faunalia.it
Wed Nov 28 09:11:03 PST 2012


Hi all.

Various issues with the OSM plugin.
===
If I load OSM layers twice (once with stying, once without), then I
remove the layers downloaded second, I get an error for the first two
(points and lines):


Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File
"/home/paolo/.qgis//python/plugins/openlayers_plugin/openlayers_plugin.py",
line 204, in removeLayer
    if self.layer != None and self.layer.getLayerID() == layerId:
RuntimeError: wrapped C/C++ object of %S has been deleted


Then it crashes when removing the third (polygons).
===

Editing a layer returns errors (difficult to replicate, probably an
experienced OSMer could spot it better) of the type:

Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py", line
510, in canvasReleaseEvent
    self.__finishFeatureMoving(deltaX,deltaY)
  File "/usr/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py", line
755, in __finishFeatureMoving
   
affected=self.dbm.moveLine(self.movFeat,deltaX,deltaY,self.snapFeat,self.snapFeatType,self.snapVertexIx)
  File "/usr/share/qgis/python/plugins/osm/OsmDatabaseManager.py", line
1413, in moveLine
    ,{"wayId":str(feat.id())})
InterfaceError: Error binding parameter :wayId - probably unsupported type.


Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File
"/usr/share/qgis/python/plugins/osm/map_tools/OsmCreatePointMT.py", line
241, in canvasReleaseEvent
   
(node,affected)=self.dbm.createPoint(newPoint,self.snapFeat,self.snapFeatType)
  File "/usr/share/qgis/python/plugins/osm/OsmDatabaseManager.py", line
515, in createPoint
   
,{"wayId":str(snapFeat.id()),"posId":str(posId),"newPosId":str(posId+1)})
ProgrammingError: Cannot operate on a closed cursor.


===

Furthermore, when applying a custom styling, selections are no longer
shown in yellow.


All the best.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121128/7d49f866/attachment-0001.html>


More information about the Qgis-developer mailing list