Satellite-Aerial-Image-Retrieval icon indicating copy to clipboard operation
Satellite-Aerial-Image-Retrieval copied to clipboard

Small issue

Open stklik opened this issue 3 years ago • 0 comments

There's an extra multiplication with 360 in the calculation of y. If you compare to the original, this value is not there. It causes issues when reverting back: https://docs.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system

PS: Thanks for the code. It's great! PPS: What kind of license is this code? Can I freely use it in my projects (i.e. MIT license or so?) Thanks...

https://github.com/llgeek/Satellite-Aerial-Image-Retrieval/blob/769a698a778bf2adeb98cfb34ba377c403580d8a/tilesystem.py#L124

should be

y = 0.5 - TileSystem.clip(pixelY, 0, mapsize - 1) / mapsize

stklik avatar Dec 05 '21 16:12 stklik