Commit a4797a5d authored by Danijel Schorlemmer's avatar Danijel Schorlemmer
Browse files

Renamed the district-import function for consistency in naming

parent d47e6da1
Pipeline #38597 passed with stage
in 1 minute and 50 seconds
......@@ -602,7 +602,7 @@ class JapanDatabase(SpatialiteDatabase):
sql_statement += "VALUES (%d, '%s')" % (dwelling_size_type_id, description)
self.cursor.execute(sql_statement)
def read_districts_and_boundaries(self, district_boundary_filepath):
def import_districts_and_boundaries(self, district_boundary_filepath):
"""
Imports all districts and boundaries from a prepared geopackage file.
('estat_bound_municipal`). The function opens this file as Spatialite database
......
......@@ -42,7 +42,7 @@ def main():
logger.warning("Spatialite extension cannot be loaded. Exiting ...")
exit()
db.create_tables()
db.read_districts_and_boundaries("data/Boundary.gpkg")
db.import_districts_and_boundaries("data/Boundary.gpkg")
db.import_exposure_data(
"data/population_sub_municipal.csv",
"data/e039_3e.xlsx",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment