Generate Map Tiles

With the development of cache technology, the production of Map Tiles is constantly developing and improving, and the generation efficiency of Map Tiles is also constantly improving. At present, it supports single-task graph cutting and Generate Map Tiles by Multiple Tasks production of new tiles. Continuation Tile and Update Tile are used to update production of existing Tile.

Single-task cutting graph

Single-task graph cutting, also known as single-task Generate Map Tiles, refers to starting a single process Execute Map Cache Task in a computer. A process calls one graph cutting task at a time, and then calls the subsequent tasks in turn to execute graph cutting after the end of the Current Task.

As a traditional map cutting technology, the single-task map cutting method has a low utilization rate of computer resources, and is suitable for the map cutting requirements of small map data amount and small map cutting scale. With the increase of the amount of map data, the cutting time becomes longer. In order to improve the work efficiency, Generate Map Tiles by Multiple Tasks can be used.

Generate Map Tiles by Multiple Tasks

With the progress of technology, the amount of map data has entered the era of massive data, and the efficiency of single-task map cutting can no longer meet the needs. For example, on an ordinary working machine, it may take more than ten days to generate Tile with tens of scales for maps with dozens of layers in China.

In order to improve the efficiency of user's graph cutting and make rational use of computer system resources, the Generate Map Tiles by Multiple Tasks function is provided. The principle of Generate Map Tiles by Multiple Tasks is to split the cutting task into multiple subtasks in advance according to the map scale and Geographic Range, and then deploy the split tasks in the shared directory to achieve multiple processes to obtain subtasks in the shared directory at the same time. O as to realize multi-task parallel graph cutting. The Generate Map Tiles by Multiple Tasks mode can make full use of the hardware resources of the machine, comprehensively utilize multiple nodes to cut the graph in parallel, and greatly improve the efficiency of cutting the graph.

The efficiency of multi-task graph cutting is affected by many factors, such as calculator performance, TileStorage Format, Tile Data size and Tile storage location (local or shared). You can refer to the advice given by the Generate Map Tiles by Multiple Tasks efficiency comparison , Choose the Generate Map Tiles by Multiple Tasks that is right for you.

The structure of the single task directory is different from that of the Generate Map Tiles by Multiple Tasks directory, as shown in the following figure. On the left is the Generate Map Tiles by Multiple Tasks result:

  • CacheTask: Save the task information of the Generate Map Tiles by Multiple Tasks;
  • China _ Compact: Store the.sci index file and the Tile Data folder, that is, the contents of the picture on the right;
  • Log Store the Execution Log of each task and the total log file during the graph cutting process;
  • Cache. Property: Property file of Tile, mainly the name information of the Tile;
  • Cache Report. Txt: It is the report file of the graph cutting, including the total time consumption, the total number of Tile, the average speed, and the number of times of reset failure;

Continue to Tile

When you encounter an unexpected interruption of the program, the program will generate a *.log file under the same level directory of TileConfig File *.sci, which records the cutting information when the cutting is interrupted. The Continue Tile function continues your cutting task by reading the file to continue the unfinished cutting task in TileConfig File *.sci.

Update Tile

In the process of using Map Tiles, you may encounter changes in Map Service data, such as changes in the style of a certain layer in the map, or the addition, deletion or modification of elements in a certain layer. In this case, you need to update the existing Map Tiles to ensure the timeliness of Map Tiles.

The update Tile function supports the update operation of Raster Tile and Vector Tile, supports the update of Tile in specific scale and different Tile Bounds, and helps you automatically update outdated Tile.

Related topics

Single-task cutting graph

Generate Map Tiles by Multiple Tasks

Generate Map Tiles by Multiple Tasks efficiency comparison