Skip to content

rounding error causes snap_bounds() to fail #41

Open
@ungarj

Description

@ungarj

the following test fails at zoom 15:

def test_snap_bounds_edge_cases():
    # as zoom level increases, so increases the potential rounding errors
    tp = TilePyramid("geodetic")
    for zoom in range(18):
        snapped = snap_bounds(bounds=tp.bounds, tile_pyramid=tp, zoom=zoom)
        assert snapped == tp.bounds

at some point the check whether a given point hits the border between two tiles fails which subsequently causes the snap_bounds function to return a tile outside of the tile matrix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions