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
1b0a939a
Commit
1b0a939a
authored
6 months ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Names shouldn't have spaces
parent
57d8730a
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
+2
-0
download_files_from_LGL_BW.py
with
2 additions
and
0 deletions
+2
-0
download_files_from_LGL_BW.py
+
2
-
0
View file @
1b0a939a
...
...
@@ -162,6 +162,8 @@ def extract_region(output_dir: Path, location_name: str, wkt: str) -> None:
def
main
(
polygons
:
dict
[
str
,
str
])
->
None
:
"""Downloads ZIP files, extracts CityGML files, and selects desired region."""
for
location_name
,
wkt
in
polygons
.
items
():
if
' '
in
location_name
:
raise
ValueError
(
"Location name should not contain spaces: 'Some City' -> 'SomeCity'"
)
output_dir
=
SCRIPT_DIR
/
(
location_name
+
'.proj'
)
output_dir
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
x1
,
x2
,
y1
,
y2
=
wkt_polygon_to_grid_coords
(
location_name
,
wkt
)
...
...
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