Skip to content

Wrong tilerow when download with boundingbox #65

@CaptainInler

Description

@CaptainInler

I'm downloading this tile to a MBTiles:
http://tile.thunderforest.com/cycle/4/8/5.png
So the image has this Parameter:
zoomlevel: 4
tilecolumn: 8
tilerow: 5

I have following code:

from landez import MBTilesBuilder
mb = MBTilesBuilder(tiles_url="http://tile.thunderforest.com/cycle/{z}/{x}/{y}.png",filepath="C:\\Temp\\test.mbtiles")
mb.add_coverage(bbox=(8.0, 47.0, 8.1, 47.1), zoomlevels=[4])
mb.run()

When I extract the tile out of the MBTiles, I get the correct Image but the wrong filename; 10.png instead of 5.png

By examining the mbtiles file I see following
zoomlevel: 4
tilecolumn: 8
tilerow: 10

Why did the tilerow messed up? I have even tried using cache_scheme="wmts" but this did not change anything.

Any Idea how to get this fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions