Commit 1b0a939a authored by Eric Duminil's avatar Eric Duminil
Browse files

Names shouldn't have spaces

parent 57d8730a
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -162,6 +162,8 @@ def extract_region(output_dir: Path, location_name: str, wkt: str) -> None:
def main(polygons: dict[str, str]) -> None:
"""Downloads ZIP files, extracts CityGML files, and selects desired region."""
for location_name, wkt in polygons.items():
if ' ' in location_name:
raise ValueError("Location name should not contain spaces: 'Some City' -> 'SomeCity'")
output_dir = SCRIPT_DIR / (location_name + '.proj')
output_dir.mkdir(parents=True, exist_ok=True)
x1, x2, y1, y2 = wkt_polygon_to_grid_coords(location_name, wkt)
......
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