Jimut123 / jimutmap

API to get enormous amount of high resolution satellite images from satellites.pro quickly through multi-threading! create map your own map dataset. Bringing data to Humans.
https://jimutmap.readthedocs.io/
GNU General Public License v3.0
145 stars 17 forks source link

ret_lat_lon function is not giving the correct result for given pixel and zoom #22

Closed sourav-raj closed 1 year ago

sourav-raj commented 1 year ago

Describe the bug If we try to download the images with the name lat_long.jpg using the function ret_lat_lon instead of xTiles_yTiles.jpg, the conversion of latitude doesn't seem correct. Even if we just call the 1st functions on some (xTiles, YTiles) and pass the output (lat, lon) to lat function, results will vary.

To Reproduce Steps to reproduce the behavior:

  1. Easiest way to reproduce this is by calling the functions api_=api(min_lat_deg = 23.0, max_lat_deg = 23.03, min_lon_deg = 72.49, max_londeg = 72.53, zoom=18) api.ret_xytiles(23.0, 72.49), api.ret_xy_tiles(23.03, 72.53)
  2. output is : ((183857, 113855), (183886, 113831))
  3. now call the 2nd function: api_.ret_latlon(183857, 113855), api.ret_lat_lon(183886, 113831)
  4. output is : ((21.888705486651332, 72.48916625976562), (21.914930407351424, 72.52899169921875))

Expected behavior output should be ((23.0, 72.49), (23.03, 72.53))

Desktop (please complete the following information):

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the issue template!

Jimut123 commented 1 year ago

Issue resolved #23, thanks a lot, @sourav-raj !