Generate Map Tiles by Multiple Tasks

Function Description

A Generate Map Tiles by Multiple Tasks is a Execute Map Cache Task that open multiple processes on a single compute. According to the scale and Geographic Range of the map, the map slicing task is split into multiple sub-tasks, and then the split tasks are deployed in a shared directory for multi-task parallel slicing. 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.

To improve the Generate Map Tiles by Multiple Tasks rate, the map data can be preprocessed according to the following recommendations.

Caution:
If the absolute path of Image Files is referenced inside

the Mosaic Dataset, after it is copied to different directories of different machines, the path of Image Files needs to be re-specified on the machine to ensure that the Mosaic Dataset can be displayed normally on the machine. Otherwise, the cut Tile is a white picture.

  • Understand the physical organization of data and adjust the Data Save method
  • Understand Tile Storage requirements and select the appropriate TileStorage Format Three TileStorage Formats are

    provided: Original, Compact, and MongoDB. Selecting different Storage Formats will have a certain impact on The size of tiles, generation time, etc. Please refer to TileStorage Format for the detailed introduction of Tile Storage type.

  • Understand the characteristics of the data and choose the method to improve the cutting performance When the

    map data is complex, the efficiency of map cutting can be improved through map tuning and some Parameter Settings during map cutting.

    • For Digital Map, it is recommended to perform Performance Diagnosis on the map first and then perform tuning. Generally, it involves Vector DatasetCreate Spatial Index, Image DatasetCreate Image Pyramid, setting the maximum and minimum visible scale of layers, Dataset thinning, etc.
    • Scattered data or cutting range has a large and irregular span in a certain direction, and there are many blank areas. When cutting, you can only generate Tile within the boundary Dataset Bounds through Custom Expression or selecting the cutting range object.

Function entrance

  • Workspace Manager-> Map node-> Map Context Menu requiring Generate Map Tiles-> Generate Map Tiles (Multitask) item.
  • Right click Map and select Generate Map Tiles (Multitask).
  • Map tab-> Drawing group-> Multitask.

Parameter Description

  • Multitasking: Generate Map Tiles dialog box Parameter Description
    Caution:

    If Tile Type: is set to Vector Tile, see the Vector Tile page for Vector Tile Parameter Settings.

      Scale of
    • Generate Map Tiles by Multiple Tasks, Parameter Settings, Path Settings, Save Settings, Tile Bounds, Parameters for Origin of Tile see Single-task cutting graph page.
    • Task granularity: The setting of task granularity can split the Map Bounds under the current All Levels into the number of tasks according to pixels, set different task granularity, and display the number of split tasks and the Spatial Info of Tile occupied storage. Set different scales and Tile Bounds at the same time, and the number of tasks and the storage Spatial Info occupied by Tile will also change accordingly. Provide four granularity setting modes of intelligence, fine granularity, medium granularity and coarse granularity:
      • Intelligence: Calcualting the number of tasks from 64 * 64 pixels. When the number of tasks is greater than 2 million, the pixels will be expanded to twice the original number (i.e. 128 * 128), and then the number of tasks will be calculated again until the number of tasks is less than 2 million;
      • Fine granularity: refers to the number of Split Tasks according to 128 * * 128 pixels;
      • Medium granularity: refers to the number of Split Tasks according to 256 * 256 pixels;
      • Coarse granularity: refers to the number of Split Tasks according to 512 * 512 pixels;
  • Generate Map Tiles by Multiple Tasks Dialog Box Parameter Description
    • Set Tile Data:
      • Map cutting Works pace: supports adding maps in File Workspace and Database Workspace to execute map cutting. When you select File Works pace, you only need to specify the Workspace path; When Database Workspace is selected, Select Workspace Type, Input Data: Library Connection Info, See the Open Database Datasource for the Detail Description of the database Connection Info.
      • Workspace Path: The path is the Workspace path of the map to be cut. The user needs to ensure that the map to be cut in the Workspace is consistent with the map in Split Tasks. If it is inconsistent, the result cannot be browsed correctly. In this case, the user is recommended to split the updated map again and then cut the Tile.
      • Workspace Password: If Workspace has set a password, you need to enter the Workspace password here, otherwise you cannot access Workspace data.
      • Map Name: Set the map name to be cut.
    • Setup Tasks
      • Number of tasks: Set the number of tasks for graph cutting, that is, start several processes on the current machine to Execute Map Cache Task. The number of processes needs to be set according to the configuration of the machine and the usage of the processes. The default number of tasks is the number of CPU threads of the computer * 1.5 times, and the CPU utilization rate is 100% when cutting the graph. The number of processes can be adjusted at any time during the graph cutting process. If the number of input processes is more than current number of processes, click the Apply button to increase the corresponding process execution graph cutting in time; if the number of input processes is less than current number of processes, click the Apply button to reduce the corresponding running graph cutting process in time.
      • Working file: Assigns to the sci file in the folder named by Tile Name under the Tile working directory.
      • Port number: It is used in an application process on the Unique identifier host to facilitate the communication between different application processes. The specified port can provide reliable data transmission. The default port number of the program is 31363. If you are prompted that the port is occupied during the execution of graph cutting, please check the usage of the port. Specify a different port.
    • Tiles Progress: In the right panel of the dialog box, you can view the Tiles Progress in real time, including the total progress, the total number of tasks, the number of completed tasks, the number of tasks to be executed, the number of failed tasks and the number of tasks in execution, so as to master the Tiles Progress in real time.
    • Output Window: Displays the Output Window in the cutting process in real time on the lower side of the dialog box.
    • Reset Failed Tasks: In the Generate Map Tiles by Multiple Tasks dialog box, you will be prompted with the number of failed tasks. You can re-cut the failed tasks with Reset Failed Tasks. If there is still a failed task, please further check the map data or split task, and then restart the Generate Map Tiles by Multiple Tasks program.
    • Export Log: Export the cutting log as an.xml file.

Related topics

Generate Map Tiles

Single-task cutting graph

Generate Map Tiles by Multiple Tasks efficiency comparison