Skip to content
GitLab
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
302428e1
Commit
302428e1
authored
Mar 23, 2025
by
Eric Duminil
Browse files
Split main
parent
dde3b35b
Changes
1
Hide whitespace changes
Inline
Side-by-side
download_files_from_LGL_BW.py
View file @
302428e1
...
...
@@ -241,14 +241,8 @@ Examples:
return
parser
.
parse_args
()
def
main
():
def
main
(
location_name
:
str
,
wkt_or_zipcode
:
str
,
download_only
:
bool
=
False
,
simstadt_folder
:
Path
|
None
=
None
):
"""Main function to process arguments and run the download/extraction"""
args
=
parse_arguments
()
location_name
=
args
.
name
wkt_or_zipcode
=
args
.
region
download_only
=
args
.
download_only
simstadt_folder
=
args
.
simstadt_folder
# Validate location name
if
' '
in
location_name
:
...
...
@@ -283,4 +277,6 @@ def main():
if
__name__
==
'__main__'
:
main
()
args
=
parse_arguments
()
main
(
args
.
name
,
args
.
region
,
args
.
download_only
,
args
.
simstadt_folder
)
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