15 lines
682 B
Python
15 lines
682 B
Python
from pathlib import Path
|
|
from hub.imports.geometry_factory import GeometryFactory
|
|
from hub.helpers.dictionaries import Dictionaries
|
|
# Specify the GeoJSON file path
|
|
file_path = (Path(__file__).parent / 'input_files' / 'riga_case_study_84_fixed.geojson')
|
|
# Specify the output path for the PDF file
|
|
output_path = (Path(__file__).parent / 'out_files').resolve()
|
|
# Create city object from GeoJSON file
|
|
city = GeometryFactory('geojson',
|
|
path=file_path,
|
|
height_field='height_ag',
|
|
year_of_construction_field=None,
|
|
function_field=None,
|
|
function_to_hub=None).city
|
|
print('test') |