See mercantile
https://mercantile.readthedocs.io/en/latest/

On Mon, 22 Feb 2021 at 06:54, MRRAJESH <[email protected]> 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
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to