Commit 4ad28b56 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle
Browse files

typo

parent 9b84bfaa
......@@ -10,12 +10,12 @@ def make_bbox(coords,crs,delta_meters):
"""
Make a bbox from a location in long/lat
"""
utmproj = Proj(crs)
# latlong2utm
utmx, utmy = utmproj(coords[1], coords[0])
proj = Proj(crs)
# long/lat -> specific projection
coordx, coordy = proj(coords[1], coords[0])
# utm2latlong + delta for bbox
ll_lon, ll_lat = utmproj(utmx - delta_meters,utmy - delta_meters, inverse=True)
ur_lon, ur_lat = utmproj(utmx + delta_meters,utmy + delta_meters, inverse=True)
ll_lon, ll_lat = proj(coordx - delta_meters,coordy - delta_meters, inverse=True)
ur_lon, ur_lat = proj(coordx + delta_meters,coordy + delta_meters, inverse=True)
#bbox
res = [ll_lat,ll_lon,ur_lat,ur_lon]
return(res)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment