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
053fcf04
Commit
053fcf04
authored
Nov 06, 2025
by
Eric Duminil
Browse files
Basic WFS for BW
parent
a07ff9b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
01_baden_wuerttemberg.py
View file @
053fcf04
from
citygml_download
import
Bundesland
from
citygml_download
import
Bundesland
,
TMP_DIR
,
download_file
import
json
# Data are available as WFS
# NOTE: Use geopandas or specific WFS lib?
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"
BADEN_WUERTTEMBERG
=
Bundesland
(
"Baden-Württemberg"
,
...
...
@@ -6,3 +11,29 @@ BADEN_WUERTTEMBERG = Bundesland(
info
=
"https://www.lgl-bw.de/Produkte/Open-Data/"
,
license
=
"dl-de/by-2-0"
,
)
if
__name__
==
"__main__"
:
bw_json
=
TMP_DIR
/
"bw_lod2.json"
download_file
(
BW_WFS
,
bw_json
)
with
open
(
bw_json
)
as
json_file
:
data
=
json
.
load
(
json_file
)
xs
,
ys
=
[],
[]
import
matplotlib.pyplot
as
plt
for
feature
in
data
[
"features"
]:
x
,
y
=
feature
[
'bbox'
][:
2
]
xs
.
append
(
x
)
ys
.
append
(
y
)
# citygmls.append(
# CityGMLWithDate(
# url=feature["properties"]["xml"],
# bundesland=NIEDERSACHSEN,
# source_date=datetime.strptime(feature["properties"]["Aktualitaet"], "%Y-%m-%d %H:%M:%S"),
# # coordinate_reference_system ?
# )
# )
plt
.
plot
(
xs
,
ys
)
plt
.
show
()
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