Fix tile boundaries

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-03-08 14:28:18 +00:00
parent 1243481f16
commit 20ebb95c7a

View file

@ -87,7 +87,7 @@ def get_lon(tile):
# Returns precise west boundary of tile # Returns precise west boundary of tile
def get_west(tile): def get_west(tile):
lon = ((16760832 & int(tile)) >> 14) - 180 lon = ((16760832 & int(tile)) >> 14) - 180
y = (7 & int(tile)) / (1 / get_tile_width(get_lat(tile))) y = (7 & int(tile)) / (1 / get_tile_width(get_south(tile)))
return lon + y return lon + y
# Returns east boundary of tile # Returns east boundary of tile