{"id":21751,"library":"pygeotile","title":"pyGeoTile","description":"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 is the latest, released intermittently.","status":"active","version":"1.0.6","language":"python","source_language":"en","source_url":"https://github.com/geometalab/pyGeoTile","tags":["tiles","projections","gps","quadtree","wgs84","mercator"],"install":[{"cmd":"pip install pygeotile","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"note":"Tile is not directly under pygeotile package; must import from submodule.","wrong":"from pygeotile import Tile","symbol":"Tile","correct":"from pygeotile.tile import Tile"},{"note":"Point is not directly under pygeotile package; must import from submodule.","wrong":"from pygeotile import Point","symbol":"Point","correct":"from pygeotile.point import Point"},{"note":"","wrong":null,"symbol":"MercatorProjection","correct":"from pygeotile.tile import MercatorProjection"}],"quickstart":{"code":"from pygeotile.tile import Tile\n\n# Convert WGS84 coordinates to TMS tile at zoom 15\ntile = Tile.for_latitude_longitude(latitude=47.376, longitude=8.548, zoom=15)\nprint('TMS tile:', tile.tms_x, tile.tms_y, tile.zoom)\n\n# Convert tile to Google (XYZ) coordinates\nprint('Google tile:', tile.google_x, tile.google_y)\n\n# Get bounding box of the tile\nbbox = tile.bounds\nprint('Bounding box:', bbox)","lang":"python","description":"Create a Tile from lat/lng and access TMS, Google coordinates, and bounds."},"warnings":[{"fix":"Use tile.tms_y vs tile.google_y as appropriate.","message":"Tile coordinates are zero-based and may differ between TMS and Google (XYZ) schemes. Ensure correct flip for TMS Y axis.","severity":"gotcha","affected_versions":"all"},{"fix":"Review the QuadTree section in documentation.","message":"The 'quadtree' methods expect a specific input format; incorrect usage leads to ValueError.","severity":"gotcha","affected_versions":"all"},{"fix":"Use correct imports as shown in quickstart.","message":"Old import style from pygeotile.pygeotile may exist in outdated examples; not supported in v1.0.6.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use: from pygeotile.tile import Tile","cause":"Incorrect import: using 'from pygeotile import Tile' instead of 'from pygeotile.tile import Tile'.","error":"AttributeError: module 'pygeotile' has no attribute 'Tile'"},{"fix":"Provide a zoom level between 0 and 30 inclusive.","cause":"Zoom level provided exceeds 30, which is the maximum allowed zoom.","error":"ValueError: The maximum zoom level is 30"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}