Create Tiling Task

Feedback


The server in which the caching task is created is the master caching node(TileMaster), the other cluster child nodes are child caching nodes(TileWorker). Preparation of the caching environment and storage, operations like creating task and monitoring, both are done on the master node, and there is nothing to be done on the child nodes. After the caching task is created, the data to be cached will be deployed on the child nodes automatically. If the data on the master node is changed, it will be automatically synchronized to the child nodes. About the principle and internal communication mechanism of the distributed tiling, please refer to: Distributed tiling mechanism .

 

Create distributed tiling task and set parameters

The specific setting details are as follows:

General settings

General settings mainly include three parts: tile setting, storage setting and scale setting.

Tile settings:

Note: If the storage type is selected in GeoPackage format, the till-to-scale automatically changes with the tile size.

Storage settings:

Note: When the selected storage type is SMTiles, it cannot be stored in the mounted shared directory.

When the selected storage type is UGCV5, you can also store cache files in the S3 object storage service. At this point, the storage path needs to be filled in as {Endpoint}/{bucket name}/{specified file path}/? accessKey={Access Key ID}&secretKey={Secret Access Key}, For example: http://oss-cb-beijing.aliyuncs.com/iServer/test/?accessKey={Access Key ID}&secretKey={Secret Access Key}

          Among them,

 Scale bar setting:

Please note:

Since the WMTS service does not contain coordinate system information itself, only after specifying a tile matrix set does the map contain coordinate system information. Therefore, when generating tiles for the WMTS service, selecting SuperMap Cloud/Google Maps/Bing Maps and TianDiTu scale solutions is not available.

Among them, the specific scales in the SuperMap Cloud/Google Maps/Bing Maps scale scheme and the Tianditu scale scheme are:

Table 1 Scale Level

Level Scale Level Scale Level Scale Level Scale
0 1/591658710.9091312 5 1/18489334.71591035 10 1/577791.7098721984 15 1/18055.9909335062
1 1/295829355.4545656 6 1/9244667.357955175 11 1/288895.8549360992 16 1/9027.9954667531
2 1/147914677.7272828 7 1/4622333.678977587 12 1/144447.9274680496 17 1/4513.99773337655
3 1/73957338.8636414 8 1/2311166.8394887936 13 1/72223.9637340248 18 1/2256.998866688275
4 1/36978669.4318207 9 1/1155583.4197443968 14 1/36111.9818670124 19 1/1128.4994333441375

 

Set raster tile

Set vector tile

As shown in the figure above, the basic idea of the Douglas-Peucker algorithm is to connect the first and last points of each curve with a straight line (line a in Figure 1), find the distance between all points and the straight line, and find the maximum distance value. Dmax (i.e., line B in fig. 1), compare dmax to the tolerance D:

Add tile version and append tile

After setting the above parameters, click the "Create" button to create the task.

If there are already map tiles with the same map name, tile size and transparent in the storage location specified by the above parameters, that is, the same file name of a single machine (such as *.smtiles) or the same tile set name in the same tile library, the following two situations will occur:

For details about the version, please refer to: Tile Set Version .

View task list

After a task is created, you can click the "Show Job List" button to view all the tiling tasks being exetilled and completed on the current server in the "Tile Management" - "Task" page, as well as the basic information and progress information of each task.

You can stop the task being exetilled, start or delete the suspended task, click the map name in the task to view more detailed task information, progress information, work progress of each scale and map tiling sub-node, and restart the task to till the map again.

For a completed task, you can view the map name, component name, elapsed time, number of tiles, tile type, storage type, and storage location corresponding to the current task.

For vector tile and attribute tile generation tasks, after creating in the old UI, you still need to check the task information in the old UI.

Monitor tiling process

In the caching task list, click the map name to view the status information, including tile storage, tile configuration, task progress(dynamically displayed caching speed, time), caching time statistics, tile version, storage(occupied storage and expected occupied storage) information. You can pause, start, restart the task, and monitor the status of each TileWorker in the caching task.

For vector tile and attribute tile generation tasks, after creating in the old UI, you still need to monitor the tile generation process in the old UI.