Skip to main content

Tool for calculate XYZ-tile bounding box in spherical mercator

Project description

The PyPI package https://travis-ci.org/unknownlighter/sphericalmercator.svg?branch=master

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)

Project details


Download files

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

Source Distribution

sphericalmercator-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file sphericalmercator-0.1.0.tar.gz.

File metadata

File hashes

Hashes for sphericalmercator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31bd66585053ed2c40289d238be1e73e7571fa350585628c752fa495a9ee4e1f
MD5 a4e595c3401e750e6f9bc46c8c0faf7d
BLAKE2b-256 95166d5be89bfa6eab9765b0eb92df5d7f4b7b7ca5e1d836e3b28cb01a18b8dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page