Welcome to pyGeoTile’s documentation!

Indices and tables

pygeotile Package

Point

class pygeotile.point.Point[source]

Immutable Point class

classmethod from_latitude_longitude(latitude=0.0, longitude=0.0)[source]

Creates a point from lat/lon in WGS84

classmethod from_meters(meter_x=0.0, meter_y=0.0)[source]

Creates a point from X Y Z (zoom) meters in Spherical Mercator EPSG:900913

classmethod from_pixel(pixel_x=0, pixel_y=0, zoom=None)[source]

Creates a point from pixels X Y Z (zoom) in pyramid

latitude_longitude

Gets lat/lon in WGS84

meters

Gets the XY meters in Spherical Mercator EPSG:900913, converted from lat/lon in WGS84

pixels(zoom=None)[source]

Gets pixels of the EPSG:4326 pyramid by a specific zoom, converted from lat/lon in WGS84

Tile

class pygeotile.tile.Tile[source]

Immutable Tile class

bounds

Gets the bounds of a tile represented as the most west and south point and the most east and north point

classmethod for_latitude_longitude(latitude, longitude, zoom)[source]

Creates a tile from lat/lon in WGS84

classmethod for_meters(meter_x, meter_y, zoom)[source]

Creates a tile from X Y meters in Spherical Mercator EPSG:900913

classmethod for_pixels(pixel_x, pixel_y, zoom)[source]

Creates a tile from pixels X Y Z (zoom) in pyramid

classmethod for_point(point, zoom)[source]

Creates a tile for given point

classmethod from_google(google_x, google_y, zoom)[source]

Creates a tile from Google format X Y and zoom

classmethod from_quad_tree(quad_tree)[source]

Creates a tile from a Microsoft QuadTree

classmethod from_tms(tms_x, tms_y, zoom)[source]

Creates a tile from Tile Map Service (TMS) X Y and zoom

google

Gets the tile in the Google format, converted from TMS

quad_tree

Gets the tile in the Microsoft QuadTree format, converted from TMS

tms

Gets the tile in pyramid from Tile Map Service (TMS)