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

Lint

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