mercantile icon indicating copy to clipboard operation
mercantile copied to clipboard

LngLatBbox with lng outside -180/180

Open davidbrochart opened this issue 3 years ago • 0 comments

Longitudes outside the -180/180 range don't seem to be handled:

import mercantile

bbox = mercantile.LngLatBbox(180, 0, 180+360, 1)
list(mercantile.tiles(*bbox, 10)
# [Tile(x=1023, y=509, z=10), Tile(x=1023, y=510, z=10), Tile(x=1023, y=511, z=10)]

Should they be translated back to -180/180 ?

davidbrochart avatar Oct 18 '22 14:10 davidbrochart