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
3e2ed659
Commit
3e2ed659
authored
10 months ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Check if SimStadt is installed
parent
87e2bb3d
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
+9
-1
download_files_from_LGL_BW.py
with
9 additions
and
1 deletion
+9
-1
download_files_from_LGL_BW.py
+
9
-
1
View file @
3e2ed659
...
@@ -46,7 +46,15 @@ SCRIPT_DIR = Path(__file__).parent
...
@@ -46,7 +46,15 @@ SCRIPT_DIR = Path(__file__).parent
WAIT_BETWEEN_DOWNLOADS
=
5
# [s] Be nice to LGL Server.
WAIT_BETWEEN_DOWNLOADS
=
5
# [s] Be nice to LGL Server.
if
EXTRACT_REGIONS
:
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"
GML_GLOB
=
"LoD2_*/LoD2_*.gml"
...
...
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