Skip to content

Commit

Permalink
OSM: Upload only tag which are not marked as deleted. Fixes #2054.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12519 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 19, 2009
1 parent d93338b commit 32fe182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/osm/OsmUploadDlg.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""@package OsmUploadDlg
Module provides simple way of uploading current OSM data.
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 32fe182

Please sign in to comment.