the location of the S2Tiles data
FetchReader specific; enable range requests or use urlParam "bytes"
the max size of the cache before dumping old data. Defaults to 20.
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
Setup the reader
S2 Tiles Reader
Description
An S2 Tile Reader to store tile and metadata in a cloud optimized format. Similar to PMTiles but simplified to have as few features as possible.
Reads either a Web Mercator tile or an S2 tile to the folder location given its (zoom, x, y) or (face, zoom, x, y) coordinates.
Reads data via the S2Tiles specification.
Usage
Links