[gdal-dev] Finding the Map-Tiles(x, y) in a given Bounding box and zoom level
MRRAJESH
rajeshreddy82 at gmail.com
Mon Feb 22 03:54:13 PST 2021
Hi,
I have map tiles @ different zoom levels 8 to 22 levels. I have a Bounding
box also. How can I calculate the minimum number tile (min tile column, min
tile row) and maximum number tile (max tile column, max tile row) for a
given bounding box and zoom level?
Any sample code?
For Example:
Bounding box
(-9943845.8836751487,5321240.1611008309,-9943540.1355620064,5321545.90921397)
Zoom level: 18
*Expected output at 18th level for a given BBOX:*
Min:Max X= 96262 : 96282 - #of Tiles\Row: XX
Min:Max Y= 66027 : 66047 - #of Tiles\Col: XX
Regards,
Rajesh
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list