Esempio n. 1
0
def set_parent_ids():
    create_parent_polygons()

    run_in_parallel(set_polygons_parent_ids, set_points_parent_ids,
                    set_linestrings_parent_ids, set_housenumbers_parent_ids)

    drop_parent_polygons()
    vacuum_database()
Esempio n. 2
0
def merge_corresponding_linestrings():
    exec_sql_from_file("merge_corresponding_linestrings.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 3
0
def set_place_parentInfo():
    exec_sql_from_file("set_place_parentInfo.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 4
0
def set_country_codes():
    exec_sql_from_file("set_country_codes.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
    consistency_check.missing_country_codes()
Esempio n. 5
0
def delete_unusable_entries():
    exec_sql_from_file("delete_unusable_entries.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 6
0
def follow_wikipedia_redirects():
    exec_sql_from_file("follow_wikipedia_redirects.sql",
                       cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 7
0
def delete_nameless_entries():
    exec_sql_from_file("delete_nameless_entries.sql",
                       cwd=os.path.dirname(__file__),
                       parallelize=True)
    vacuum_database()
Esempio n. 8
0
def set_names():
    set_names_from_tags()
    set_linestring_names_from_relations()
    vacuum_database()
Esempio n. 9
0
def cluster_geometries():
    exec_sql_from_file("cluster_geometries.sql", cwd=SQL_DIR)
    vacuum_database()
Esempio n. 10
0
def set_geometry_centers():
    exec_sql_from_file("set_geometry_centers.sql", cwd=SQL_DIR)
    vacuum_database()
Esempio n. 11
0
def set_parent_ids():
    exec_sql_from_file("set_parent_ids.sql", cwd=SQL_DIR)
    vacuum_database()
Esempio n. 12
0
def cluster_geometries():
    exec_sql_from_file("cluster_geometries.sql", cwd=SQL_DIR)
    vacuum_database()
Esempio n. 13
0
def set_geometry_centers():
    exec_sql_from_file("set_geometry_centers.sql", cwd=SQL_DIR)
    vacuum_database()
Esempio n. 14
0
def cluster_geometries():
    exec_sql_from_file("cluster_geometries.sql", cwd=SQL_DIR, parallelize=True)
    vacuum_database()
Esempio n. 15
0
def set_parent_ids():
    exec_sql_from_file("set_parent_ids.sql", cwd=SQL_DIR)
    vacuum_database()
Esempio n. 16
0
def create_tables_backup():
    exec_sql_from_file("create_tables_backup.sql", cwd=os.path.dirname(__file__))
	vacuum_database()
Esempio n. 17
0
def set_linestring_centers():
    exec_sql_from_file("set_linestring_centers.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 18
0
def merge_linked_nodes():
    exec_sql_from_file("merge_linked_nodes/merge_nodes_linked_by_relation.sql",
                       cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 19
0
def delete_unusable_entries():
    exec_sql_from_file("delete_unusable_entries.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 20
0
def set_polygon_types():
    exec_sql_from_file("set_polygon_types.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 21
0
def set_place_ranks():
    exec_sql_from_file("set_place_ranks.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 22
0
def set_linestring_centers():
    exec_sql_from_file("set_linestring_centers.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 23
0
def set_country_codes():
    exec_sql_from_file("set_country_codes.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
    consistency_check.missing_country_codes()
Esempio n. 24
0
def set_place_ranks():
    exec_sql_from_file("set_place_ranks.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 25
0
def determine_linked_places():
    exec_sql_from_file("determine_linked_places.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 26
0
def determine_linked_places():
    exec_sql_from_file("determine_linked_places.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 27
0
def merge_corresponding_linestrings():
    exec_sql_from_file("merge_corresponding_linestrings.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 28
0
def add_missing_streetnames_postcodes_cities():
    exec_sql_from_file("add_missing_streetnames_postcodes_cities.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 29
0
def merge_nodes_linked_by_relation():
    exec_sql_from_file("merge_nodes_linked_by_relation.sql", cwd=SQL_DIR)
    vacuum_database()
Esempio n. 30
0
def remove_duplicate_entries():
    exec_sql_from_file("remove_duplicate_entries.sql", cwd=os.path.dirname(__file__))
    vacuum_database()
Esempio n. 31
0
def set_geometry_centers():
    exec_sql_from_file("set_geometry_centers.sql",
                       cwd=SQL_DIR,
                       parallelize=True)
    vacuum_database()