示例#1
0
 def __init__(self, file_prefix):
     OSMHandler.__init__(self, file_prefix)
     self.selected = 0
     self.num_fixed = 0
     self.checkme_ways = []
     self.unrecognized_tags = {}
     self.unrecognized_direction_tags = {}
     self.ambigious_expansions = {}
示例#2
0
 def __init__(self, file_prefix):
     OSMHandler.__init__(self, file_prefix)
     self.selected = 0
     self.num_fixed = 0
     self.checkme_ways = []
     self.unrecognized_tags = {}
     self.unrecognized_direction_tags = {}
     self.ambigious_expansions = {}
示例#3
0
    def endDocument(self):
        for x in self.seen:
            ways = 0
            for y in self.seen[x]:
                if y.firstChild.tagName == "way":
                    ways = ways + 1
            if ways == 0:
                continue

            for y in self.seen[x]:
                if y.firstChild.tagName == "node":
                    self.base.appendChild(y)

        OSMHandler.endDocument(self)
示例#4
0
    def endDocument(self):
        for x in self.seen:
            ways = 0
            for y in self.seen[x]:
                if y.firstChild.tagName == "way":
                    ways = ways + 1
            if ways == 0:
                continue

            for y in self.seen[x]:
                if y.firstChild.tagName == "node":
                    self.base.appendChild(y)

        OSMHandler.endDocument(self)
示例#5
0
 def __init__(self, out):
     OSMHandler.__init__(self, out)
     self.seen = {}
示例#6
0
 def __init__(self, out):
     OSMHandler.__init__(self, out)
     self.seen = {}