simplify gml call

This commit is contained in:
Guille Gutierrez 2024-05-07 05:22:26 +02:00
parent d66ad362c7
commit 921034a884

View File

@ -51,13 +51,11 @@ class InselMonthlyEnergyBalance(Resource, Config):
year_of_construction_field = request.form.get('year_of_construction_field') year_of_construction_field = request.form.get('year_of_construction_field')
function_field = request.form.get('function_field') function_field = request.form.get('function_field')
function_dictionary = self._dictionaries[request.form.get('function_dictionary_name')] function_dictionary = self._dictionaries[request.form.get('function_dictionary_name')]
hub_crs = request.form.get('hub_crs')
return GeometryFactory('citygml', return GeometryFactory('citygml',
path=file_path, path=file_path,
year_of_construction_field=year_of_construction_field, year_of_construction_field=year_of_construction_field,
function_field=function_field, function_field=function_field,
function_to_hub=function_dictionary, function_to_hub=function_dictionary).city
hub_crs=hub_crs).city
except KeyError: except KeyError:
return None return None