From 9fd00e6992f7a6ca068c654ead89ea7f8598ae44 Mon Sep 17 00:00:00 2001
From: Eric Duminil <eric.duminil@gmail.com>
Date: Sun, 20 Oct 2024 11:56:18 +0200
Subject: [PATCH] Examples for ZipCodes

---
 download_files_from_LGL_BW.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/download_files_from_LGL_BW.py b/download_files_from_LGL_BW.py
index 6b46b1d..f2035a4 100644
--- a/download_files_from_LGL_BW.py
+++ b/download_files_from_LGL_BW.py
@@ -33,7 +33,9 @@ COORDINATES_REGEX = re.compile(r"(\-?\d+\.\d*) (\-?\d+\.\d*)")
 # Values can be either a WKT POLYGON or MULTIPOLYGON, a Zipcode, or Zipcodes separated by a comma.
 REGIONS = {
     "StuttgartCenter": "POLYGON((9.175287 48.780916, 9.185501 48.777522, 9.181467 48.773704, 9.174429 48.768472, 9.168807 48.773902, 9.175287 48.780916))",
+    # "Freiburg": "79098,79102",
     # "AnotherRegion": "Another WKT Polygon...",
+    # "YetAnotherRegion": "Another ZIP code",
 }
 # Should RegionChooser extract the regions from multiple CityGMLs?
 EXTRACT_REGIONS = True
@@ -182,7 +184,6 @@ def get_wkt(wkt_or_zipcode: str) -> str:
         return wkt_or_zipcode
     else:
         return get_coordinates_by_zipcode(wkt_or_zipcode.split(','))
-    # raise ValueError(f"Unknown region format: {wkt_or_zipcode}")
 
 def main(regions: dict[str, str]) -> None:
     """Downloads ZIP files, extracts CityGML files, and selects desired region."""
-- 
GitLab