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
b2b2b958
Commit
b2b2b958
authored
Oct 20, 2024
by
Eric Duminil
Browse files
Clearer name
parent
093c886f
Changes
1
Hide whitespace changes
Inline
Side-by-side
download_files_from_LGL_BW.py
View file @
b2b2b958
...
...
@@ -182,14 +182,14 @@ def main(polygons: dict[str, str]) -> None:
print
()
def
show
_coordinates
(
match
):
def
convert
_coordinates
(
match
):
longitude
,
latitude
=
match
.
groups
()
x
,
y
=
TO_LOCAL_CRS
.
transform
(
longitude
,
latitude
)
return
f
"
{
x
}
{
y
}
"
def
convert_wkt_to_local
(
wkt
):
return
COORDINATES_REGEX
.
sub
(
show
_coordinates
,
wkt
)
return
COORDINATES_REGEX
.
sub
(
convert
_coordinates
,
wkt
)
if
__name__
==
'__main__'
:
...
...
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