27.1.22. Vector Tiles
27.1.22.1. Write vector tiles (MBTiles)
Exports one or more vector layers to vector tiles, a data format optimized for fast map rendering and small data size.
MBTiles is a specification for storing tiled map data in SQLite databases for immediate usage and for transfer. MBTiles files are known as tilesets.
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Input layers |
|
[vector: any] [list] |
A list of layers to combine to generate the vector tiles |
Minimum zoom level |
|
[数字] Default: 0 |
The lowest zoom level for which the tileset provides data. Set between 0 and 24. |
Maximum zoom level |
|
[数字] Default: 3 |
The highest zoom level for which the tileset provides data. Set between 0 and 24. |
Extent 可选 |
|
[范围] Default: Not set |
The maximum extent of the rendered map area. Bounds must define an area covered by all zoom levels. |
Metadata: Name 可选 |
|
[string] |
Name of the tileset |
Metadata: Description 可选 |
|
[string] |
A description of the tileset's contents |
Metadata: Attribution 可选 |
|
[string] |
An attribution string, which explains the sources of data and/or style for the map. |
Metadata: Version 可选 |
|
[string] |
The version of the tileset. This refers to a revision of the tileset itself, not of the MBTiles specification. |
Metadata: Type 可选 |
|
[string] |
Type of tileset. Possible values are |
Metadata: Center 可选 |
|
[string] |
The center (string of comma-separated numbers: the longitude, latitude, and zoom level)
of the default view of the map. Example: |
Destination MBTiles |
|
[vector tiles] Default: [Save to temporary file] |
Specification of the output MBTiles file. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Destination MBTiles |
|
[file] |
Output vector tiles |
Python代码
Algorithm ID: native:writevectortiles_mbtiles
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
27.1.22.2. Write vector tiles (XYZ)
Exports one or more vector layers to vector tiles, a data format optimized for fast map rendering and small data size.
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
File template |
|
[string] Default: '{z}/{x}/{y}.pbf' |
Template to generate the vector tiles url |
Input layers |
|
[vector: any] [list] |
A list of layers to combine to generate the vector tiles |
Minimum zoom level |
|
[数字] Default: 0 |
The lowest zoom level for which the tileset provides data. Set between 0 and 24. |
Maximum zoom level |
|
[数字] Default: 3 |
The highest zoom level for which the tileset provides data. Set between 0 and 24. |
Extent 可选 |
|
[范围] Default: Not set |
The maximum extent of the rendered map area. Bounds must define an area covered by all zoom levels. |
Output directory |
|
[folder] Default: [Save to temporary folder] |
Specification of the output vector tiles folder. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Output directory |
|
[folder] |
A folder containing different subsets of the vector tiles files
( |
Python代码
Algorithm ID: native:writevectortiles_xyz
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。