Commit 12af051c authored by shinde's avatar shinde
Browse files

Added calculate number of buildings

parent 909b3d7b
Pipeline #26678 failed with stage
in 107 minutes and 27 seconds
......@@ -20,9 +20,12 @@
import logging
import sys
import sqlite3
from exposurelib_database import SpatialiteDatabase
from database import JapanDatabase # pylint: disable=E0611,E0401
from frequency_distribution_v3 import Frequency
#from frequency_distribution_v3 import Frequency
from density import Density
from administrative_unit_areas import AdministrativeUnitArea
from number_of_buildings_calculator import NumberOfBuildings
# Add a logger printing error, warning, info and debug messages to the screen
logger = logging.getLogger()
......@@ -35,7 +38,7 @@ def main():
# Example logging output
logger.info("exposurejapan started")
db = Frequency("/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/test.sqlite", '/usr/lib/x86_64-linux-gnu/mod_spatialite.so.7.1.0')
db = NumberOfBuildings("/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/test.sqlite", '/usr/lib/x86_64-linux-gnu/mod_spatialite.so.7.1.0')
try:
db.connect()
......@@ -50,8 +53,10 @@ def main():
# '/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/data/e011_2e.xlsx',
# '/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/data/e014e.xlsx',
# '/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/data/ESTAT_population_sub_municipal.csv')
db.apply_frequency('/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/test.sqlite')
#db.apply_frequency('/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/test.sqlite'),
#db.area('/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/test.sqlite'),
#db.density('/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/test.sqlite'),
db.calculate_numbers('/home/shinde/Nextcloud/GFZ_Team_Danijel/Japan/exposure_Model/gitlab/future_files/test.sqlite')
# Leave the program
sys.exit()
......
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