Commit 9636c98d authored by Eric Duminil's avatar Eric Duminil
Browse files

rename

parent 4d17091f
...@@ -6,15 +6,13 @@ from pathlib import Path ...@@ -6,15 +6,13 @@ from pathlib import Path
from citygml_download import TMP_DIR, Bundesland, CityGMLWithDate, download_all_files, download_file from citygml_download import TMP_DIR, Bundesland, CityGMLWithDate, download_all_files, download_file
# Data are available as WFS # Data are available as WFS
# NOTE: Use geopandas or specific WFS lib?
# TODO: Try to find data with QGIS or Geopandas # 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" ZIP_URL_FORMAT = "https://opengeodata.lgl-bw.de/data/lod2/LoD2_32_%s_%s_2_bw.zip"
BADEN_WUERTTEMBERG = Bundesland( BADEN_WUERTTEMBERG = Bundesland(
"Baden-Württemberg", "Baden-Württemberg",
source="https://opengeodata.lgl-bw.de/#/(sidenav:product/lod2)", source = "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",
info="https://www.lgl-bw.de/Produkte/Open-Data/", info="https://www.lgl-bw.de/Produkte/Open-Data/",
license="dl-de/by-2-0", license="dl-de/by-2-0",
) )
...@@ -50,7 +48,7 @@ class ZipFile(CityGMLWithDate): ...@@ -50,7 +48,7 @@ class ZipFile(CityGMLWithDate):
if __name__ == "__main__": if __name__ == "__main__":
bw_json = TMP_DIR / "bw_lod2.json" bw_json = TMP_DIR / "bw_lod2.json"
download_file(BW_WFS, bw_json) download_file(BADEN_WUERTTEMBERG.source, bw_json)
with open(bw_json) as json_file: with open(bw_json) as json_file:
data = json.load(json_file) data = json.load(json_file)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment