diff --git a/download_files_from_LGL_BW.py b/download_files_from_LGL_BW.py index 65e44a27e8fd3a773c905b344f90a90edec9e05f..f5f2317715d09d888ee6a875556a01b9e50f856e 100644 --- a/download_files_from_LGL_BW.py +++ b/download_files_from_LGL_BW.py @@ -8,10 +8,10 @@ This script downloads the required tiles for given regions (as WKT strings, Zipcode or Zipcodes), and extracts the region. Usage: - python download_files_from_LGL_BW.py 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))" - python download_files_from_LGL_BW.py Freiburg "79098,79102" - python download_files_from_LGL_BW.py Möhringen "70567" --download-only - python download_files_from_LGL_BW.py CustomPath "POLYGON(...)" --simstadt-folder "/path/to/SimStadt" + python download_LoD2_from_LGL_BW.py 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))" + python download_LoD2_from_LGL_BW.py Freiburg "79098,79102" + python download_LoD2_from_LGL_BW.py Möhringen "70567" --download-only + python download_LoD2_from_LGL_BW.py CustomPath "POLYGON(...)" --simstadt-folder "/path/to/SimStadt" Required: * Python @@ -216,13 +216,13 @@ def convert_wkt_to_local(wkt_str): def parse_arguments(): """Parse command line arguments""" parser = argparse.ArgumentParser( - description="Download LoD2 CityGML tiles from LGL Baden-Württemberg and extract specific regions", + description="Download LoD2 CityGML tiles from LGL Baden-Württemberg and extract desired regions", formatter_class=argparse.RawDescriptionHelpFormatter, epilog=""" Examples: - python download_files_from_LGL_BW.py 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))" - python download_files_from_LGL_BW.py Freiburg "79098,79102" - python download_files_from_LGL_BW.py Möhringen "70567" --download-only + python download_LoD2_from_LGL_BW.py 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))" + python download_LoD2_from_LGL_BW.py Freiburg "79098,79102" + python download_LoD2_from_LGL_BW.py Möhringen "70567" --download-only """ ) @@ -230,7 +230,7 @@ Examples: help='Name of the region (no spaces allowed). Output files will use this name.') parser.add_argument('region', type=str, - help='Region specification as WKT POLYGON/MULTIPOLYGON string or zipcode(s) (comma-separated).') + help='Desired region as as WKT POLYGON/MULTIPOLYGON string or zipcode(s) (comma-separated).') parser.add_argument('--download-only', action='store_true', help='Only download files without extracting the region (default: False).') @@ -238,6 +238,9 @@ Examples: parser.add_argument('--simstadt-folder', type=Path, default=None, help='Path to SimStadt installation folder. By default, tries to find it on the Desktop.') + parser.add_argument('--output-folder', type=Path, default=None, + help='Folder in which the tiles should be downloaded and extracted. By default, use the folder of the current script.') + return parser.parse_args()