odc.geo.gridspec.GridSpec.web_tiles

static GridSpec.web_tiles(zoom, npix=256)[source]

Construct GridSpec that matches slippy tiles.

Tile with index (0, 0) is at the top left corner of the map, and tile with index (2^zoom - 1, 2^zoom - 1) is at the bottom right.

Parameters:
  • zoom (int) – Zoom level, 0 is one single tile, 1 is 2x2, 3 is 8x8

  • npix (int) – Usually tiles are 256x256 pixels wide. But you can override that.

Return type:

GridSpec

Returns:

Grid spec that encodes slippy tiles scheme in EPSG:3857.