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
e5074fbc
Commit
e5074fbc
authored
Nov 25, 2025
by
Eric Duminil
Browse files
Zip files are for Brandenburg
parent
35569a34
Changes
1
Hide whitespace changes
Inline
Side-by-side
04_brandenburg.py
View file @
e5074fbc
...
...
@@ -2,6 +2,7 @@ import re
from
datetime
import
datetime
from
citygml_download
import
TMP_DIR
,
Bundesland
,
CityGMLWithDate
,
download_all_files
,
download_file
from
zipfile_download
import
ZipFile
BRANDENBURG
=
Bundesland
(
"Brandenburg"
,
...
...
@@ -20,18 +21,18 @@ if __name__ == "__main__":
if
not
html_path
.
exists
():
download_file
(
BRANDENBURG
.
source
,
TMP_DIR
/
html_path
)
citygml
s
=
[]
zipfile
s
=
[]
with
open
(
html_path
)
as
html
:
for
line
in
html
:
if
m
:
=
ZIP_AND_DATE
.
search
(
line
):
name
,
date
=
m
.
groups
()
citygml
s
.
append
(
CityGMLWithDat
e
(
zipfile
s
.
append
(
ZipFil
e
(
url
=
BRANDENBURG
.
source
+
name
,
bundesland
=
BRANDENBURG
,
source_date
=
datetime
.
strptime
(
date
,
"%Y-%m-%d %H:%M"
),
)
)
download_all_files
(
citygml
s
)
download_all_files
(
zipfile
s
)
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