PMTiles Writer Parameters
Zoom Levels
The required minimum zoom level at which a tileset will be generated.
The minimum supported value is 0. Note that specific tile files within the zoom level will only be generated if input geometries exist within those tiles.
Default:0
Minimum supported value:0
The required maximum zoom level at which a tileset will be generated.
The maximum supported value is 22. Note that specific tile files within the zoom level will only be generated if input geometries exist within those tiles.
Default:5
Maximum supported value:22
For more information about zoom levels, see Mapbox Documentation.
Tile Size
Number of units in a tile. A higher number of units results in more accurate geometry coordinates (at the expense of tile byte size).
Default: 4096
- Auto (default) – Calculates the buffer size based on a percentage of tile size per zoom level.
- Manual – Enables the parameter Number of Tile Buffer Units.
When Buffer Size Calculation is set to Manual, enter the number of units for geometry buffering. This value corresponds to a buffer around each side of a tile into which geometries are fetched and clipped.
Default: 5 times the number of units per tile divided by 256. 80 when the number of units per tile is 4096.
Maximum size of a tile in bytes (after compression).
If a tile is greater than this threshold, features will be written with reduced precision, or discarded and warnings will be logged.
Default: 500000
Maximum number of features per tile.
Default: 200000
Metadata
Defines the tileset name and is used to fill metadata records.
Defaults to the basename of the output file.
Defines the tileset description, which is used to fill the tileset metadata.
This parameter is optional and defaults to an empty description.
The type of the layer. Used to fill metadata records.
- Base Layer – The foundational layer that provides the main visual backdrop for other layers.
- Overlay (default) – A layer placed on top of the base layer to add extra information such as boundaries, places, and roads.
Advanced
Simplification factor for linear or polygonal geometries. The unit is the integer unit of tiles after quantification of geometry coordinates to tile coordinates.
Applies to all zoom levels, unless Simplification Factor Max Zoom Level is also defined.
Simplification factor for linear or polygonal geometries (which applies only to the maximum zoom level).
The number of threads to use in the translation.
To set a specific number of threads, set this parameter to any positive whole integer value from 0-64.
If this parameter is left blank (which is the default), the default CPU number of threads will be used.