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
87e2bb3d
Commit
87e2bb3d
authored
10 months ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
subprocess.run should now also work on Linux
parent
7f8142ef
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
+6
-6
download_files_from_LGL_BW.py
with
6 additions
and
6 deletions
+6
-6
download_files_from_LGL_BW.py
+
6
-
6
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
...
...
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