Skip to main content

Usage

The package pyGeoTile consist of two main classes, namely Point and Tile. As already mentioned they allow you to convert various geo projections. The full API documentation could be found under http://pygeotile.readthedocs.io

Point

Example of the class Point.

from pygeotile.point import Point

meter_x, meter_y, zoom = -9757148.442088600, 5138517.444985110, 19  # meters in Spherical Mercator EPSG:900913

point = Point.from_meters(meter_x=meter_x, meter_y=meter_y)

print('Pixels: ', point.pixels(zoom=zoom))  # Pixels:  (34430592, 49899136)
print('Lat/Lon: ', point.latitude_longitude)  # Lat/Lon:  (41.84987190947754, -87.64995574951166)

Tile

Example of the class Tile.

from pygeotile.tile import Tile

tms_x, tms_y, zoom = 134494, 329369, 19
tile = Tile.from_tms(tms_x=tms_x, tms_y=tms_y, zoom=19)  # Tile Map Service (TMS) X Y and zoom

print('QuadTree: ', tile.quad_tree)  # QuadTree:  0302222310303211330

Notes

This repository is inspired from:

Metadata

Release files for pyGeoTile 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyGeoTile 1.0.6
File Size Uploaded
pyGeoTile-1.0.6.tar.gz 3.8 kB Details

Release files / pyGeoTile-1.0.6.tar.gz

Download URL pyGeoTile-1.0.6.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
64b1cfac77a392e81e2220412872cd0fb4988c25e136f8aed7c03ced59134ff9
BLAKE2b-256 checksum
How to use checksums
cf434efe7a429e75b946dace4493e012990d135ac1b063d4e8fa710f04a6f191
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.6 This release

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page