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
9636c98d
Commit
9636c98d
authored
Nov 10, 2025
by
Eric Duminil
Browse files
rename
parent
4d17091f
Changes
1
Hide whitespace changes
Inline
Side-by-side
01_baden_wuerttemberg.py
View file @
9636c98d
...
...
@@ -6,15 +6,13 @@ from pathlib import Path
from
citygml_download
import
TMP_DIR
,
Bundesland
,
CityGMLWithDate
,
download_all_files
,
download_file
# Data are available as WFS
# NOTE: Use geopandas or specific WFS lib?
# TODO: Try to find data with QGIS or Geopandas
BW_WFS
=
"https://owsproxy.lgl-bw.de/owsproxy/wfs/WFS_LGL-BW_LoD2_Aktualitaet?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=verm:v_lod2_aktualitaet&MAXFEATURES=50000&OUTPUTFORMAT=application/json"
ZIP_URL_FORMAT
=
"https://opengeodata.lgl-bw.de/data/lod2/LoD2_32_%s_%s_2_bw.zip"
BADEN_WUERTTEMBERG
=
Bundesland
(
"Baden-Württemberg"
,
source
=
"https://o
pengeodata
.lgl-bw.de/
#/(sidenav:product/lod2)
"
,
source
=
"https://o
wsproxy
.lgl-bw.de/
owsproxy/wfs/WFS_LGL-BW_LoD2_Aktualitaet?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=verm:v_lod2_aktualitaet&MAXFEATURES=50000&OUTPUTFORMAT=application/json
"
,
info
=
"https://www.lgl-bw.de/Produkte/Open-Data/"
,
license
=
"dl-de/by-2-0"
,
)
...
...
@@ -50,7 +48,7 @@ class ZipFile(CityGMLWithDate):
if
__name__
==
"__main__"
:
bw_json
=
TMP_DIR
/
"bw_lod2.json"
download_file
(
B
W_WFS
,
bw_json
)
download_file
(
B
ADEN_WUERTTEMBERG
.
source
,
bw_json
)
with
open
(
bw_json
)
as
json_file
:
data
=
json
.
load
(
json_file
)
...
...
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