the location of the S2Tiles data
Optional
maxzoom: numberset the maxzoom if you're writing
Optional
compression: Compressionset the compression algorithm if you're writing
Finish writing by building the header with root and leaf directories
the metadata to store
Optional
tileCompression: Compressionthe compression algorithm that was used on the tiles [Default: None]
Get the metadata of the archive
Get the bytes of the tile at the given (face, zoom, x, y) coordinates
the Open S2 projection face
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
Get the bytes of the tile at the given (zoom, x, y) coordinates
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
Check if an S2 tile exists in the archive
the Open S2 projection face
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
Check if a tile exists in the archive
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
Write a tile to the S2Tiles file given its (face, zoom, x, y) coordinates.
the Open S2 projection face
the zoom level
the tile X coordinate
the tile Y coordinate
the tile data to store
Setup the reader
Write a tile to the S2Tiles file given its (face, zoom, x, y) coordinates.
the Open S2 projection face
the zoom level
the tile X coordinate
the tile Y coordinate
the tile data to store
Write a tile to the S2Tiles file given its (z, x, y) coordinates.
the zoom level
the tile X coordinate
the tile Y coordinate
the tile data to store
S2 Tiles Reader
Reads & Writes data via the S2Tiles specification.