Commit 0054e195 authored by Eric Duminil's avatar Eric Duminil
Browse files

Extrusion: only write CityGML once

parent f723fabe
...@@ -210,7 +210,7 @@ class bldg_extrusion: ...@@ -210,7 +210,7 @@ class bldg_extrusion:
print('function is not residential: '+function) print('function is not residential: '+function)
pass pass
# Write the modified CityGML back to a new file # Write the modified CityGML back to a new file
tree.write(output_file_path, pretty_print=True, xml_declaration=True, encoding='utf-8')
if building_id not in bldg_IDs: if building_id not in bldg_IDs:
continue continue
return print('Building extrusion completed and safed in:\n'+output_file_path) tree.write(output_file_path, pretty_print=True, xml_declaration=True, encoding='utf-8')
\ No newline at end of file return print('Building extrusion completed and saved in:\n'+output_file_path)
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