Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Tool for calculate XYZ-tile bounding box in spherical mercator

Project description

The PyPI package


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


pip install sphericalmercator


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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sphericalmercator, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sphericalmercator-0.1.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page