Commit 61c9dab0 authored by Danijel Schorlemmer's avatar Danijel Schorlemmer
Browse files

Implemented the import of dwelling floorspace and sizes

parent 11de1987
Pipeline #22987 passed with stage
in 1 minute and 26 seconds
......@@ -829,10 +829,15 @@ class JapanDatabase(SpatialiteDatabase):
# Prepare and insert the data to the DwellingSizeNumber table
for dwelling_size_type_id in range(7):
number_dwelling = float(str(row[6 + dwelling_size_type_id]).replace("-", "0"))
self.insert_dwelling_distribution(district_id, building_type_id,
dwelling_type_id, tenure_type_id,
construction_material_id,
dwelling_size_type_id, number_dwelling)
self.insert_dwelling_distribution(
district_id,
building_type_id,
dwelling_type_id,
tenure_type_id,
construction_material_id,
dwelling_size_type_id,
number_dwelling,
)
logger.debug(
"Dwelling numbers by size for district %s, type %s, %s, %s, %s added"
% (
......
Markdown is supported
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