semvec/pypi-packages huggingface dataset:
sphericalmercator 0.1.0
Tool for calculate XYZ-tile bounding box in spherical mercator

.. image:: https://img.shields.io/pypi/v/sphericalmercator.svg
    :alt: The PyPI package
    :target: https://pypi.python.org/pypi/sphericalmercator

.. image:: https://travis-ci.org/unknownlighter/sphericalmercator.svg?branch=master
    :target: https://travis-ci.org/unknownlighter/sphericalmercator

Description
===========

Tool for calculate tile bounding box (in geodesic coordinates) by specified XYZ (x - column, y - row, z - zoom) of tile.


Installation
============

::

  pip install sphericalmercator


Usage
=====

::

  from sphericalmercator import SphericalMercator

  merc = SphericalMercator(levels=15, size=256)
  print merc.xyz_to_envelope(x=2474, y=1280, zoom=12)
  # outputs (37.44140625, 55.727110085045986, 37.529296875, 55.7765730186677)