Example #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 = {}
Example #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 = {}
Example #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)
Example #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)
Example #5
0
 def __init__(self, out):
     OSMHandler.__init__(self, out)
     self.seen = {}
Example #6
0
 def __init__(self, out):
     OSMHandler.__init__(self, out)
     self.seen = {}