Skip to content

Error in the implementation of tile coordinates of babel('bing') #13

@ysig

Description

@ysig

Hi,

thank you for this really nice wrapper library.

I have a problem that seems to be related with an implementation error for bing tiles. Given:

from babelgrid import Babel
babel = Babel('bing')
lat, lon = 14.223633, 40.948055

the predicted tile box boundaries:

tile = babel.geo_to_tile(lat, lon, resolution=res)
print(tile.geometry.geojson['coordinates'][0])

are:

((0.0, 40.979898069620155), (0.0, 66.51326044311185), (45.00000000000001, 66.51326044311185), (45.00000000000001, 40.979898069620155))

which clearly doesn't contain the lat, lon point (the mismatch is in the second dimension 40.938055 < 40.979898069620155)

So either I'm not using the correct way for extracting the boundaries or there is a problem in the implementation.

Thanks,

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