You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document defines the Versatiles Container Format v2.0, which describes the structure and encoding mechanisms for efficiently storing large numbers of map tiles.
2. General Guidelines
Byte order: All numeric values are encoded in big-endian byte order.
Tile organization: Tiles are organised according to the XYZ scheme, with the origin (x=0, y=0) located at the top-left (northwest) corner.
3. File structure
The Versatiles Container format consists of four main components:
File Header: Introduces the container file, details global properties, and indicates the locations of Metadata and Block Index.
Metadata: Provides detailed information about the tileset, including attribution and layer definitions.
Blocks: Aggregates tiles into larger units (Blocks) for efficient storage and access, each containing Tile Blobs and Tile Index.
Block Index: Acts as a parent directory for all blocks within the file.
File Format
3.1. File Header
Length: 66 bytes.
Location: At the start of the file.
Purpose: Outlines essential file properties and indicates subsequent section locations.
Note: To efficiently find the Block containing the tile you are looking for, use a data structure such as a "map", "dictionary" or "associative array" and fill it with the data from the Block Index.