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
87e2bb3d
Commit
87e2bb3d
authored
Jun 17, 2024
by
Eric Duminil
Browse files
subprocess.run should now also work on Linux
parent
7f8142ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
download_files_from_LGL_BW.py
View file @
87e2bb3d
...
...
@@ -113,12 +113,12 @@ def extract_region(output_dir: Path, location_name: str, wkt: str) -> None:
print
(
f
" Extracting
{
output_file
}
."
)
region_chooser_libs
=
Path
(
SIMSTADT_FOLDER
).
expanduser
()
/
'lib/*'
gml_inputs
=
output_dir
.
glob
(
GML_GLOB
)
result
=
subprocess
.
run
(
' '
.
join
(
[
'java'
,
'-classpath'
,
f
'
"
{
region_chooser_libs
}
"
'
,
'eu.simstadt.regionchooser.RegionChooserCLI'
,
'--input'
,
','
.
join
(
str
(
gml
)
for
gml
in
gml_inputs
),
'--output'
,
str
(
output_file
),
'--wkt'
,
'-'
,
])
,
result
=
subprocess
.
run
([
'java'
,
'-classpath'
,
f
'
{
region_chooser_libs
}
'
,
'eu.simstadt.regionchooser.RegionChooserCLI'
,
'--input'
,
','
.
join
(
str
(
gml
)
for
gml
in
gml_inputs
),
'--output'
,
str
(
output_file
),
'--wkt'
,
'-'
,
]
,
input
=
wkt
,
text
=
True
,
capture_output
=
True
...
...
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