Module pm_spec

Module pm_spec 

Source
Expand description

PM Tiles Specific Tools

Structs§

PMDirectory
PMTiles v3 directory. A collection of Entry instances for storage
PMEntry
PMTiles v3 directory entry.
PMHeader
PMTiles v3 header storing basic archive-level information.
PMPoint2D
An array of two numbers representing a point in 2D space
PMTilePos
A tile, in the format of ZXY

Enums§

PMTileType
Describe the type of tiles stored in the archive. 0 is unknown/other, 1 is “MVT” vector tiles.

Constants§

PM_HEADER_SIZE_BYTES
the number of bytes in the header
PM_ROOT_SIZE
the number of bytes in the root
PM_TZ_VALUES
zoom values for each zoom level. Supports up to 27 zooms

Functions§

find_tile
Low-level function for looking up a tile_id or leaf directory inside a directory.
rotate
rotate xy by n