| Name | pyGeoTile JSON |
| Version |
1.0.6
JSON |
| download |
| home_page | https://github.com/geometalab/pyGeoTile |
| Summary | Python package to handle tiles and points of different projections, in particular WGS 84 (Latitude, Longitude), Spherical Mercator (Meters), Pixel Pyramid and Tiles (TMS, Google, QuadTree) |
| upload_time | 2018-03-08 14:48:56 |
| maintainer | |
| docs_url | None |
| author | Samuel Kurath |
| requires_python | |
| license | MIT |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
|
| coveralls test coverage |
No coveralls.
|
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.
.. code:: python
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.
.. code:: python
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:
- Tiles à la Google Maps, http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
- Bing Maps Tile System, https://msdn.microsoft.com/en-us/library/bb259689.aspx
- Showing pixel and tile coordinates: https://developers.google.com/maps/documentation/javascript/examples/map-coordinates?hl=de
- Mercantile: https://github.com/mapbox/mercantile
Raw data
{
"_id": null,
"home_page": "https://github.com/geometalab/pyGeoTile",
"name": "pyGeoTile",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Samuel Kurath",
"author_email": "geometalab@hsr.ch",
"download_url": "https://files.pythonhosted.org/packages/cf/43/4efe7a429e75b946dace4493e012990d135ac1b063d4e8fa710f04a6f191/pyGeoTile-1.0.6.tar.gz",
"platform": "",
"description": "Usage\n-----\n\nThe package pyGeoTile consist of two main classes, namely Point and\nTile. As already mentioned they allow you to convert various geo\nprojections.\nThe full API documentation could be found under http://pygeotile.readthedocs.io\n\n\nPoint\n~~~~~\n\nExample of the class Point.\n\n.. code:: python\n\n from pygeotile.point import Point\n\n meter_x, meter_y, zoom = -9757148.442088600, 5138517.444985110, 19 # meters in Spherical Mercator EPSG:900913\n\n point = Point.from_meters(meter_x=meter_x, meter_y=meter_y)\n\n print('Pixels: ', point.pixels(zoom=zoom)) # Pixels: (34430592, 49899136)\n print('Lat/Lon: ', point.latitude_longitude) # Lat/Lon: (41.84987190947754, -87.64995574951166)\n\n\n|\n\nTile\n~~~~\n\nExample of the class Tile.\n\n.. code:: python\n\n from pygeotile.tile import Tile\n\n tms_x, tms_y, zoom = 134494, 329369, 19\n tile = Tile.from_tms(tms_x=tms_x, tms_y=tms_y, zoom=19) # Tile Map Service (TMS) X Y and zoom\n\n print('QuadTree: ', tile.quad_tree) # QuadTree: 0302222310303211330\n\n|\n\nNotes\n-----\n\nThis repository is inspired from:\n - Tiles \u00e0 la Google Maps, http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/\n - Bing Maps Tile System, https://msdn.microsoft.com/en-us/library/bb259689.aspx\n - Showing pixel and tile coordinates: https://developers.google.com/maps/documentation/javascript/examples/map-coordinates?hl=de\n - Mercantile: https://github.com/mapbox/mercantile",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python package to handle tiles and points of different projections, in particular WGS 84 (Latitude, Longitude), Spherical Mercator (Meters), Pixel Pyramid and Tiles (TMS, Google, QuadTree)",
"version": "1.0.6",
"project_urls": {
"Homepage": "https://github.com/geometalab/pyGeoTile"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cf434efe7a429e75b946dace4493e012990d135ac1b063d4e8fa710f04a6f191",
"md5": "d9ccbd076c50e8f93c20d13356f2404d",
"sha256": "64b1cfac77a392e81e2220412872cd0fb4988c25e136f8aed7c03ced59134ff9"
},
"downloads": -1,
"filename": "pyGeoTile-1.0.6.tar.gz",
"has_sig": false,
"md5_digest": "d9ccbd076c50e8f93c20d13356f2404d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3846,
"upload_time": "2018-03-08T14:48:56",
"upload_time_iso_8601": "2018-03-08T14:48:56.727172Z",
"url": "https://files.pythonhosted.org/packages/cf/43/4efe7a429e75b946dace4493e012990d135ac1b063d4e8fa710f04a6f191/pyGeoTile-1.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2018-03-08 14:48:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "geometalab",
"github_project": "pyGeoTile",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "pygeotile"
}