simplify gml call
This commit is contained in:
parent
d66ad362c7
commit
921034a884
|
@ -51,13 +51,11 @@ class InselMonthlyEnergyBalance(Resource, Config):
|
|||
year_of_construction_field = request.form.get('year_of_construction_field')
|
||||
function_field = request.form.get('function_field')
|
||||
function_dictionary = self._dictionaries[request.form.get('function_dictionary_name')]
|
||||
hub_crs = request.form.get('hub_crs')
|
||||
return GeometryFactory('citygml',
|
||||
path=file_path,
|
||||
year_of_construction_field=year_of_construction_field,
|
||||
function_field=function_field,
|
||||
function_to_hub=function_dictionary,
|
||||
hub_crs=hub_crs).city
|
||||
function_to_hub=function_dictionary).city
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user