Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mayer
CircularGreenSimCity
Commits
0054e195
Commit
0054e195
authored
Jul 22, 2024
by
Eric Duminil
Browse files
Extrusion: only write CityGML once
parent
f723fabe
Changes
1
Show whitespace changes
Inline
Side-by-side
gml_extrusion/build_up_geonmetries.py
View file @
0054e195
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment