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
9fd00e69
Commit
9fd00e69
authored
6 months ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Examples for ZipCodes
parent
fe513353
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
download_files_from_LGL_BW.py
+2
-1
download_files_from_LGL_BW.py
with
2 additions
and
1 deletion
+2
-1
download_files_from_LGL_BW.py
+
2
-
1
View file @
9fd00e69
...
...
@@ -33,7 +33,9 @@ COORDINATES_REGEX = re.compile(r"(\-?\d+\.\d*) (\-?\d+\.\d*)")
# Values can be either a WKT POLYGON or MULTIPOLYGON, a Zipcode, or Zipcodes separated by a comma.
REGIONS
=
{
"StuttgartCenter"
:
"POLYGON((9.175287 48.780916, 9.185501 48.777522, 9.181467 48.773704, 9.174429 48.768472, 9.168807 48.773902, 9.175287 48.780916))"
,
# "Freiburg": "79098,79102",
# "AnotherRegion": "Another WKT Polygon...",
# "YetAnotherRegion": "Another ZIP code",
}
# Should RegionChooser extract the regions from multiple CityGMLs?
EXTRACT_REGIONS
=
True
...
...
@@ -182,7 +184,6 @@ def get_wkt(wkt_or_zipcode: str) -> str:
return
wkt_or_zipcode
else
:
return
get_coordinates_by_zipcode
(
wkt_or_zipcode
.
split
(
','
))
# raise ValueError(f"Unknown region format: {wkt_or_zipcode}")
def
main
(
regions
:
dict
[
str
,
str
])
->
None
:
"""Downloads ZIP files, extracts CityGML files, and selects desired region."""
...
...
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