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

Lint

parent 27043c1e
Showing with 3 additions and 3 deletions
+3 -3
......@@ -55,6 +55,7 @@ UTM = 32
SCRIPT_DIR = Path(__file__).parent
WAIT_BETWEEN_DOWNLOADS = 5 # [s] Be nice to LGL Server.
GML_GLOB = "LoD2_*/LoD2_*.gml"
if EXTRACT_REGIONS:
try:
......@@ -66,7 +67,6 @@ if EXTRACT_REGIONS:
"\nset EXTRACT_REGIONS to False,"
"\nor set SIMSTADT_FOLDER manually: SIMSTADT_FOLDER = Path('/path/to/SimStadt')"
)
GML_GLOB = "LoD2_*/LoD2_*.gml"
def coordinates_to_grid(longitude: float, latitude: float) -> tuple[int, int]:
......@@ -183,8 +183,8 @@ def get_wkt(wkt_or_zipcode: str) -> str:
"""
if 'POLYGON' in wkt_or_zipcode:
return wkt_or_zipcode
else:
return get_coordinates_by_zipcode(wkt_or_zipcode.split(','))
return get_coordinates_by_zipcode(wkt_or_zipcode.split(','))
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