TilingScheme

class bruty.tile_calculations.TilingScheme(min_x=- 180, min_y=- 90.0, max_x=180.0, max_y=90.0, zoom=13)

Bases: bruty.abstract.VABC

A generic coordinate to tile index class. Given an area and zoom level it will compute tile indices for a given coordinate (or array of coordinates). Also it will return the boundaries of a tile given the index.

Inheritance diagram of TilingScheme

Attributes Summary

id

Methods Summary

height()

num_tiles([zoom])

tile_index_to_xy(tx, ty[, zoom])

width()

xy_to_tile_index(x, y[, zoom])

Attributes Documentation

id

Methods Documentation

height()
num_tiles(zoom=None)
tile_index_to_xy(tx, ty, zoom=None)
width()
xy_to_tile_index(x, y, zoom=None)
__init__(min_x=- 180, min_y=- 90.0, max_x=180.0, max_y=90.0, zoom=13)

Initialize self. See help(type(self)) for accurate signature.