Beispiel #1
0
def Parse(xml_file_name,_higherid):

    # id of a higher element in the map hierarchy of Guided Area 
    # (id of the area that contains the current elements)
    higherid = _higherid

    buildings = WaysOsmIdExtractor()
    p = OSMParser(concurrency=4, ways_callback=buildings.border, nodes_callback=buildings.points)
    p.parse_xml_file(xml_file_name)

    b = OSMParser(concurrency=4, coords_callback=coords_callback)
    b.parse_xml_file(xml_file_name)

    return Data
Beispiel #2
0
def Parse(xml_file_name, _higherid):

    # id of a higher element in the map hierarchy of Guided Area
    # (id of the area that contains the current elements)
    higherid = _higherid

    buildings = WaysOsmIdExtractor()
    p = OSMParser(concurrency=4,
                  ways_callback=buildings.border,
                  nodes_callback=buildings.points)
    p.parse_xml_file(xml_file_name)

    b = OSMParser(concurrency=4, coords_callback=coords_callback)
    b.parse_xml_file(xml_file_name)

    return Data