@@ -43,7 +43,6 @@ def __init__(self,plugin):
43
43
44
44
self .plugin = plugin
45
45
self .canvas = plugin .canvas
46
- self .pluginName = "QGIS OSM v0.4"
47
46
48
47
self .dbConns = {} # map dbFileName->sqlite3ConnectionObject
49
48
self .pointLayers = {}
@@ -420,7 +419,6 @@ def createPoint(self,mapPoint,snapFeat,snapFeatType,doCommit=True):
420
419
c = self .getConnection ().cursor ()
421
420
c .execute ("insert into node (id,lat,lon,usage,status) values (:nodeId,:lat,:lon,0,'A')"
422
421
,{"nodeId" :str (nodeId ),"lat" :str (mapPoint .y ()),"lon" :str (mapPoint .x ())})
423
- self .insertTag (nodeId ,"Point" ,"created_by" ,self .pluginName ,False )
424
422
c .close ()
425
423
426
424
if doCommit :
@@ -470,9 +468,6 @@ def createPoint(self,mapPoint,snapFeat,snapFeatType,doCommit=True):
470
468
elif snapFeatType == 'Polygon' :
471
469
self .changePolygonStatus (snapFeat .id (),"N" ,"U" )
472
470
473
- # insert created_by tag of the new point
474
- self .insertTag (nodeId ,"Point" ,"created_by" ,self .pluginName ,False )
475
-
476
471
# finishing
477
472
c .close ()
478
473
@@ -541,7 +536,6 @@ def createLine(self,mapPoints, doCommit=True):
541
536
c .execute ("insert into node (id,lat,lon,usage,status) values (:nodeId,:lat,:lon,1,'A')"
542
537
,{ "nodeId" :str (nodeId ),"lat" :str (lat ),"lon" :str (lon ) })
543
538
544
- self .insertTag (nodeId ,"Point" ,"created_by" ,self .pluginName , False )
545
539
affected .add ((nodeId ,'Point' ))
546
540
547
541
# insert record into table of way members
@@ -556,8 +550,6 @@ def createLine(self,mapPoints, doCommit=True):
556
550
c .execute ("insert into way (id,wkb,membercnt,closed,min_lat,min_lon,max_lat,max_lon,status) values (?,?,?,0,?,?,?,?,'A')"
557
551
,(str (lineId ),sqlite3 .Binary ("" ),str (cnt ),str (minLat ),str (minLon ),str (maxLat ),str (maxLon )))
558
552
559
- self .insertTag (lineId ,"Line" ,"created_by" ,self .pluginName , False )
560
-
561
553
# finishing...
562
554
c .close ()
563
555
feat = QgsFeature (lineId ,"Line" )
@@ -623,7 +615,6 @@ def createPolygon(self,mapPoints, doCommit=True):
623
615
c .execute ("insert into node (id,lat,lon,usage,status) values (:nodeId,:lat,:lon,1,'A')"
624
616
,{ "nodeId" :str (nodeId ),"lat" :str (lat ),"lon" :str (lon ) })
625
617
626
- self .insertTag (nodeId ,"Point" ,"created_by" ,self .pluginName , False )
627
618
affected .add ((nodeId ,'Point' ))
628
619
629
620
# insert record into table of way members
@@ -638,8 +629,6 @@ def createPolygon(self,mapPoints, doCommit=True):
638
629
c .execute ("insert into way (id,wkb,membercnt,closed,min_lat,min_lon,max_lat,max_lon,status) values (?,?,?,1,?,?,?,?,'A')"
639
630
,(str (polygonId ),sqlite3 .Binary ("" ),str (cnt ),str (minLat ),str (minLon ),str (maxLat ),str (maxLon )))
640
631
641
- self .insertTag (polygonId ,"Polygon" ,"created_by" ,self .pluginName , False )
642
-
643
632
# finish
644
633
c .close ()
645
634
feat = QgsFeature (polygonId ,"Polygon" )
0 commit comments