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