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:
print('function is not residential: '+function)
pass
# 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:
continue
return print('Building extrusion completed and safed in:\n'+output_file_path)
\ No newline at end of file
tree.write(output_file_path, pretty_print=True, xml_declaration=True, encoding='utf-8')
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