Commit 292b6788 authored by Eric Duminil's avatar Eric Duminil
Browse files

Update name and doc.

parent e2db986b
No related merge requests found
Showing with 12 additions and 9 deletions
+12 -9
...@@ -8,10 +8,10 @@ This script downloads the required tiles for given regions ...@@ -8,10 +8,10 @@ This script downloads the required tiles for given regions
(as WKT strings, Zipcode or Zipcodes), and extracts the region. (as WKT strings, Zipcode or Zipcodes), and extracts the region.
Usage: 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_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_files_from_LGL_BW.py Freiburg "79098,79102" python download_LoD2_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 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 CustomPath "POLYGON(...)" --simstadt-folder "/path/to/SimStadt"
Required: Required:
* Python * Python
...@@ -216,13 +216,13 @@ def convert_wkt_to_local(wkt_str): ...@@ -216,13 +216,13 @@ def convert_wkt_to_local(wkt_str):
def parse_arguments(): def parse_arguments():
"""Parse command line arguments""" """Parse command line arguments"""
parser = argparse.ArgumentParser( 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, formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=""" epilog="""
Examples: 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_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_files_from_LGL_BW.py Freiburg "79098,79102" python download_LoD2_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 Möhringen "70567" --download-only
""" """
) )
...@@ -230,7 +230,7 @@ Examples: ...@@ -230,7 +230,7 @@ Examples:
help='Name of the region (no spaces allowed). Output files will use this name.') help='Name of the region (no spaces allowed). Output files will use this name.')
parser.add_argument('region', type=str, 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', parser.add_argument('--download-only', action='store_true',
help='Only download files without extracting the region (default: False).') help='Only download files without extracting the region (default: False).')
...@@ -238,6 +238,9 @@ Examples: ...@@ -238,6 +238,9 @@ Examples:
parser.add_argument('--simstadt-folder', type=Path, default=None, parser.add_argument('--simstadt-folder', type=Path, default=None,
help='Path to SimStadt installation folder. By default, tries to find it on the Desktop.') 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() return parser.parse_args()
......
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