Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
aqdl
geoblobs
osmaug_pkg
Commits
4ad28b56
Commit
4ad28b56
authored
Oct 05, 2022
by
Jean-Marie Lepioufle
Browse files
typo
parent
9b84bfaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
osmaug/osm/map.py
View file @
4ad28b56
...
...
@@ -10,12 +10,12 @@ def make_bbox(coords,crs,delta_meters):
"""
Make a bbox from a location in long/lat
"""
utm
proj
=
Proj
(
crs
)
# l
atlong2utm
utmx
,
utm
y
=
utm
proj
(
coords
[
1
],
coords
[
0
])
proj
=
Proj
(
crs
)
# l
ong/lat -> specific projection
coordx
,
coord
y
=
proj
(
coords
[
1
],
coords
[
0
])
# utm2latlong + delta for bbox
ll_lon
,
ll_lat
=
utm
proj
(
utm
x
-
delta_meters
,
utm
y
-
delta_meters
,
inverse
=
True
)
ur_lon
,
ur_lat
=
utm
proj
(
utm
x
+
delta_meters
,
utm
y
+
delta_meters
,
inverse
=
True
)
ll_lon
,
ll_lat
=
proj
(
coord
x
-
delta_meters
,
coord
y
-
delta_meters
,
inverse
=
True
)
ur_lon
,
ur_lat
=
proj
(
coord
x
+
delta_meters
,
coord
y
+
delta_meters
,
inverse
=
True
)
#bbox
res
=
[
ll_lat
,
ll_lon
,
ur_lat
,
ur_lon
]
return
(
res
)
...
...
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