[QGIS Commit] r12519 - trunk/qgis/python/plugins/osm

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Dec 19 11:12:55 EST 2009


Author: wonder
Date: 2009-12-19 11:12:55 -0500 (Sat, 19 Dec 2009)
New Revision: 12519

Modified:
   trunk/qgis/python/plugins/osm/OsmUploadDlg.py
Log:
OSM: Upload only tag which are not marked as deleted. Fixes #2054.


Modified: trunk/qgis/python/plugins/osm/OsmUploadDlg.py
===================================================================
--- trunk/qgis/python/plugins/osm/OsmUploadDlg.py	2009-12-19 15:23:11 UTC (rev 12518)
+++ trunk/qgis/python/plugins/osm/OsmUploadDlg.py	2009-12-19 16:12:55 UTC (rev 12519)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 """@package OsmUploadDlg
 Module provides simple way of uploading current OSM data.
 
@@ -566,7 +567,7 @@
 
         # selecting tags to construct correct XML
         ct=self.dbm.getConnection().cursor()
-        ct.execute("select key, val from tag where object_id=:nodeId and object_type=\"node\"",{"nodeId":nodeRecord[0]})
+        ct.execute("select key, val from tag where object_id=:nodeId and object_type=\"node\" and u=1",{"nodeId":nodeRecord[0]})
         for tagRecord in ct:
             requestXml.append(QString("<tag k=\"%1\" v=\"%2\"/>").arg(tagRecord[0]).arg(tagRecord[1]))
         ct.close()



More information about the QGIS-commit mailing list