Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
Germany Open-Data CityGML
Commits
c43d9971
Commit
c43d9971
authored
Oct 29, 2025
by
Eric Duminil
Browse files
Rename
parent
db18d70b
Changes
1
Hide whitespace changes
Inline
Side-by-side
10_nordrhein_westfalen.py
View file @
c43d9971
...
@@ -60,7 +60,7 @@ def download_and_verify(file_info: dict, tmp_dir: Path, download_dir: Path, max_
...
@@ -60,7 +60,7 @@ def download_and_verify(file_info: dict, tmp_dir: Path, download_dir: Path, max_
print
(
f
"✓
{
filename
}
downloaded and verified successfully"
)
print
(
f
"✓
{
filename
}
downloaded and verified successfully"
)
return
True
return
True
else
:
else
:
print
(
f
"
Hash
mismatch for
{
filename
}
"
)
print
(
f
"
Size
mismatch for
{
filename
}
"
)
print
(
f
" Expected:
{
expected_size
}
"
)
print
(
f
" Expected:
{
expected_size
}
"
)
print
(
f
" Got:
{
actual_size
}
"
)
print
(
f
" Got:
{
actual_size
}
"
)
tmp_path
.
unlink
()
tmp_path
.
unlink
()
...
@@ -70,12 +70,12 @@ def download_and_verify(file_info: dict, tmp_dir: Path, download_dir: Path, max_
...
@@ -70,12 +70,12 @@ def download_and_verify(file_info: dict, tmp_dir: Path, download_dir: Path, max_
def
download_all_files
(
def
download_all_files
(
json_
filename
:
str
,
download_path
:
Path
,
tmp_path
:
Path
=
SCRIPT_DIR
/
"tmp"
,
jobs
:
int
=
4
,
retries
:
int
=
3
json_
url
:
str
,
download_path
:
Path
,
tmp_path
:
Path
=
SCRIPT_DIR
/
"tmp"
,
jobs
:
int
=
4
,
retries
:
int
=
3
):
):
# Create directories
# Create directories
tmp_path
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
tmp_path
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
download_file
(
download_file
(
json_
filename
,
json_
url
,
NRW_JSON
,
NRW_JSON
,
)
)
...
@@ -120,4 +120,4 @@ def download_all_files(
...
@@ -120,4 +120,4 @@ def download_all_files(
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
download_all_files
(
NRW_SERVER
+
"index.json"
,
SCRIPT_DIR
/
"citygml"
/
"nordrhein_westfalen"
)
download_all_files
(
NRW_SERVER
+
"index.json"
,
SCRIPT_DIR
/
"citygml"
/
"nordrhein_westfalen"
,
retries
=
2
)
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