Multitask Generate Map Tiles.

Traditional Map Tiles are executed in a single task (single process), but with the progress of technology, the amount of map data has entered the era of massive data, and Digital MapGenerate Map Tiles (hereinafter referred to as cutting map) will take a long time. 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 the user's graph cutting, the computer system resources are used reasonably, provided, The Generate Map Tiles by Multiple Tasks supports starting a plurality of process Execute Map Cache Task on one computer, and also supports respectively starting a plurality of processes on a plurality of computers to obtain the subtask Execute Map Cache Task. The multi-task graph cutting mode can make full use of the hardware resources of the machine, comprehensively utilize multiple nodes to cut the graph in parallel, and try to improve the efficiency, stability and reliability of the graph cutting work and the Online Map service.

Generate Map Tiles by Multiple Tasks principle

The Generate Map Tiles by Multiple Tasks is to split the map cutting task into multiple subtasks according to the scale and Geographic Range of the map. The split tasks are then deployed in a shared directory for Generate Map Tiles by Multiple Tasks. Graph cutting results can be saved as Local Tiles or in the MongoDB database.

Key points of

Generate Map Tiles by Multiple Tasks

. To Run Existing Tile Tasks

in the desktop software, note the following:

  • Datasource Read Only: During Generate Map Tiles by Multiple Tasks, each process will access the Datasource where the map layer is located at the same time, and the Datasource will be occupied. Therefore, before Run Existing Tile Tasks, you must set Datasource to be opened as read-only through the "Reopen as Read-only" option in the DatasourceContext Menu, and save Workspace.
  • Split Tasks: The pre-generated map needs to be split into multiple cutting tasks. The program will generate a total Tile Config File (total sci file) according to the Tile scale, Tile Bounds and other parameters set by the user. A plurality of sub-sci files obtained by splitting based on the total sci TileConfig File. It is convenient for multiple processes to obtain independent and non-repetitive tasks.
  • Shared working directory: After Split Tasks, you will get a working File catalog, which is used to store the total sci of Map Tiles and the split child sci.