Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
Germany Open-Data CityGML
Commits
67c8a6b8
Commit
67c8a6b8
authored
Nov 19, 2025
by
Eric Duminil
Browse files
Move Berlin XML -> GML
parent
7c0f6cab
Changes
2
Hide whitespace changes
Inline
Side-by-side
03_berlin.py
View file @
67c8a6b8
...
@@ -38,3 +38,7 @@ if __name__ == "__main__":
...
@@ -38,3 +38,7 @@ if __name__ == "__main__":
)
)
download_all_files
(
zip_files
)
download_all_files
(
zip_files
)
# NOTE: Extracted files are called xml. Rename them to gml:
for
xml_path
in
BERLIN
.
download_folder
.
glob
(
'*.xml'
):
gml_path
=
xml_path
.
with_suffix
(
'.gml'
)
xml_path
.
rename
(
gml_path
)
zipfile_download.py
View file @
67c8a6b8
...
@@ -20,7 +20,6 @@ class ZipFile(CityGMLWithDate):
...
@@ -20,7 +20,6 @@ class ZipFile(CityGMLWithDate):
with
zipfile
.
ZipFile
(
self
.
path
,
"r"
)
as
main_zip
:
with
zipfile
.
ZipFile
(
self
.
path
,
"r"
)
as
main_zip
:
# Flat extract, without directory
# Flat extract, without directory
for
zip_info
in
main_zip
.
infolist
():
for
zip_info
in
main_zip
.
infolist
():
# TODO: Replace XML with GML?
if
zip_info
.
is_dir
():
if
zip_info
.
is_dir
():
continue
continue
zip_info
.
filename
=
Path
(
zip_info
.
filename
).
name
zip_info
.
filename
=
Path
(
zip_info
.
filename
).
name
...
...
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