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