How to use the mercantile.truncate_lnglat function in mercantile

To help you get started, we’ve selected a few mercantile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mapbox / mercantile / tests / test_funcs.py View on Github external
def test_truncate_lng_under():
    assert mercantile.truncate_lnglat(-181, 0) == (-180, 0)
github mapbox / mercantile / tests / test_funcs.py View on Github external
def test_truncate_lng_over():
    assert mercantile.truncate_lnglat(181, 0) == (180, 0)
github mapbox / mercantile / tests / test_funcs.py View on Github external
def test_truncate_lat_under():
    assert mercantile.truncate_lnglat(0, -91) == (0, -90)
github mapbox / mercantile / tests / test_funcs.py View on Github external
def test_truncate_lat_over():
    assert mercantile.truncate_lnglat(0, 91) == (0, 90)