Example #1
0
    if intersect:
        print 'Intersecting OSM buildings with Large buildings. Populating tables for overlapping and non-overlapping buildings.'
        db.do_intersection()

    if move_self_intersect:
        print 'Checking self intersecting buildings and moving them to manual bucket.'
        db.move_self_intersect()

    if move_intersect:
        print 'Moving buildings that share common border to manual bucket'
        db.move_intersect()

    if address:
        print 'Assigning addresses to buildings.'
        db.update_address()

    if check_address:
        print 'Checking OSM addresses in the proximity of buildings.'
        db.check_and_move('address')

    if check_road_rail:
        print 'Checking buildings overlapping with highway/railway.'
        db.check_and_move('road/rail')

    if report:
        db.print_report()

    print 'Closing DB connection.'
    db.close_db_conn()
Example #2
0
    if intersect:
        print 'Intersecting OSM buildings with Large buildings. Populating tables for overlapping and non-overlapping buildings.'
        db.do_intersection()

    if move_self_intersect:
        print 'Checking self intersecting buildings and moving them to manual bucket.'
        db.move_self_intersect()

    if move_intersect:
        print 'Moving buildings that share common border to manual bucket'
        db.move_intersect()

    if address:
        print 'Assigning addresses to buildings.'
        db.update_address()

    if check_address:
        print 'Checking OSM addresses in the proximity of buildings.'
        db.check_and_move('address')

    if check_road_rail:
        print 'Checking buildings overlapping with highway/railway.'
        db.check_and_move('road/rail')

    if report:
        db.print_report()

    print 'Closing DB connection.'
    db.close_db_conn()