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
3e2ed659
Commit
3e2ed659
authored
Jun 17, 2024
by
Eric Duminil
Browse files
Check if SimStadt is installed
parent
87e2bb3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
download_files_from_LGL_BW.py
View file @
3e2ed659
...
...
@@ -46,7 +46,15 @@ SCRIPT_DIR = Path(__file__).parent
WAIT_BETWEEN_DOWNLOADS
=
5
# [s] Be nice to LGL Server.
if
EXTRACT_REGIONS
:
SIMSTADT_FOLDER
=
next
(
Path
.
home
().
glob
(
'Desktop/SimStadt*_0.*/'
))
try
:
SIMSTADT_FOLDER
=
next
(
x
for
x
in
Path
.
home
().
glob
(
'Desktop/SimStadt*_0.*/'
)
if
x
.
is_dir
())
print
(
f
"RegionChooser has been found in
{
SIMSTADT_FOLDER
}
"
)
except
StopIteration
:
exit
(
"No SimStadt installation found!"
"
\n
Please copy a SimStadt installation to the desktop,"
"
\n
set EXTRACT_REGIONS to False,"
"
\n
or set SIMSTADT_FOLDER manually: SIMSTADT_FOLDER = Path('/path/to/SimStadt')"
)
GML_GLOB
=
"LoD2_*/LoD2_*.gml"
...
...
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