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
ac54e769
Commit
ac54e769
authored
Jan 07, 2026
by
Eric Duminil
Browse files
Very basic infos for Bremen
parent
66d19d42
Changes
1
Show whitespace changes
Inline
Side-by-side
05_bremen.py
View file @
ac54e769
# https://gdi2.geo.bremen.de/inspire/download/LoD/data/LOD2_CITYGML_HB.zip
import
re
# import xml.etree.ElementTree as ET
from
citygml_download
import
TMP_DIR
,
Bundesland
,
download_file
BREMEN
=
Bundesland
(
"Bremen"
,
source
=
"https://metaver.de/csw?REQUEST=GetRecordById&SERVICE=CSW&VERSION=2.0.2&id=226971C2-6677-4B79-95F3-C5311F1275C8"
,
info
=
"https://www.metaver.de/trefferanzeige?docuuid=226971C2-6677-4B79-95F3-C5311F1275C8"
,
license
=
"CC-BY 4.0"
,
)
if
__name__
==
"__main__"
:
xml_path
=
TMP_DIR
/
f
"
{
BREMEN
}
_lod2.xml"
download_file
(
BREMEN
.
source
,
TMP_DIR
/
xml_path
)
with
open
(
xml_path
)
as
html
:
content
=
html
.
read
()
year
=
re
.
compile
(
r
"20\d\d"
)
print
(
year
.
findall
(
content
))
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