Commit 9fd00e69 authored by Eric Duminil's avatar Eric Duminil
Browse files

Examples for ZipCodes

parent fe513353
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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."""
......
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