Skip to content
Permalink
Browse files

OSM: Upload only tag which are not marked as deleted. Fixes #2054.

git-svn-id: http://svn.osgeo.org/qgis/trunk@12519 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Dec 19, 2009
1 parent f66a426 commit a8f7e817956bc8f5dd8715199a9cb1633d920ef2
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/osm/OsmUploadDlg.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""@package OsmUploadDlg
Module provides simple way of uploading current OSM data.
@@ -566,7 +567,7 @@ def createNodeXml(self, nodeRecord):

# 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()

0 comments on commit a8f7e81

Please sign in to comment.
You can’t perform that action at this time.