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
7c0f6cab
Commit
7c0f6cab
authored
Nov 18, 2025
by
Eric Duminil
Browse files
TODO?
parent
b7da7eaf
Changes
2
Show whitespace changes
Inline
Side-by-side
03_berlin.py
View file @
7c0f6cab
import
xml.etree.ElementTree
as
ET
import
xml.etree.ElementTree
as
ET
from
datetime
import
datetime
from
datetime
import
datetime
from
pathlib
import
Path
from
citygml_download
import
TMP_DIR
,
Bundesland
,
download_all_files
,
download_file
from
citygml_download
import
TMP_DIR
,
Bundesland
,
download_all_files
,
download_file
from
zipfile_download
import
ZipFile
from
zipfile_download
import
ZipFile
...
...
zipfile_download.py
View file @
7c0f6cab
...
@@ -20,6 +20,7 @@ class ZipFile(CityGMLWithDate):
...
@@ -20,6 +20,7 @@ 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