[gdal-dev] Finding the Map-Tiles(x, y) in a given Bounding box and zoom level
Travis Kirstine
traviskirstine at gmail.com
Mon Feb 22 06:55:32 PST 2021
See mercantile
https://mercantile.readthedocs.io/en/latest/
On Mon, 22 Feb 2021 at 06:54, MRRAJESH <rajeshreddy82 at gmail.com> wrote:
> 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
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210222/76e1178a/attachment.html>
More information about the gdal-dev
mailing list