Commit d3763bf4 authored by Simantini Shinde's avatar Simantini Shinde
Browse files

Fixed building asset import

parent 307f264e
Pipeline #41548 passed with stage
in 1 minute and 56 seconds
......@@ -2027,6 +2027,8 @@ class JapanDatabase(SpatialiteDatabase):
FROM District
INNER JOIN BuildingNumber
ON BuildingNumber.district_id = District.id
INNER JOIN PopulationDistribution
ON PopulationDistribution.district_id = BuildingNumber.district_id
INNER JOIN
(
SELECT *
......@@ -2043,6 +2045,20 @@ class JapanDatabase(SpatialiteDatabase):
AND BuildingClassesMapping.construction_material_id
= BuildingNumber.construction_material_id
AND BuildingClassesMapping.story_number_id = BuildingNumber.story_number_id
WHERE
(
(
BuildingNumber.building_type_id != 0
AND BuildingNumber.construction_material_id != 0
AND BuildingNumber.story_number_id != 0
)
OR
(
BuildingNumber.building_type_id == 4
AND BuildingNumber.construction_material_id != 0
AND BuildingNumber.story_number_id == 0
)
)
""" % (
"Res",
1,
......
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