Commit ac54e769 authored by Eric Duminil's avatar Eric Duminil
Browse files

Very basic infos for Bremen

parent 66d19d42
# 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))
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