Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
Get Baden-Württemberg CityGML Opendata
Commits
292b6788
Commit
292b6788
authored
1 month ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Update name and doc.
parent
e2db986b
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
download_files_from_LGL_BW.py
+12
-9
download_files_from_LGL_BW.py
with
12 additions
and
9 deletions
+12
-9
download_files_from_LGL_BW.py
+
12
-
9
View file @
292b6788
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets