Instructions for use
Merge Tiles refers to merging multiple tiles stored locally or in MongoDB to update existing tiles or create new tiles. The Merge Tiles function is often used to integrate data from different regions or data from different periods in the same region, which avoids users from repeatedly cutting graphs and improves work efficiency.
Merge Tiles Storage Method
- Merge to Existing Tile: Update the Tile content in the list to the existing Tile.
- Merge to New: Merge Tiles in the list will be a new Tile, which can be merged to the local or MongoDB database.
Tile Types that support merging:
- Raster Tile:WEBP、PNG、JPG、JPG_PNG、PNG8。
- Vector Tile
Merge Tiles Condition
Before MongoDB Merge Tiles, it is necessary to ensure that the MongoDB service is started on the local machine, and the merged Tile also needs the following conditions:
- Merge Tiles coordinate systems agree.
- The size of tiles is consistent. The origin coordinates
- of Merge Tiles are consistent, that is, the Origin of Tile are consistent, which can be adjusted to be consistent at the time of Tile Bound sParameter Settings at the time of Generate Map Tiles.
- Merge Tiles have the same Tile format.
Function entrance
- Data tab-& > Tile Management group-& > Tile Management.
Operating instructions
- Add Tile: MongoDB Tiles and Local Tiles can be added. Please refer to the Add a Tile for detailed operations.
- Merge Tiles: Click the Merge button in the toolbar of the Tile Management panel to pop up the Merge MongoDB Tiles dialog box. Select the Merge Tiles storage mode on the left side of the
- dialog box, and provide the Merge to Existing Tile and Merge to New:
- Merge to Existing Tile: This is to merge the data of multiple versions into the Tile Data of an existing version. Click the drop-down box on the right and select Tile Name from the drop-down list.
- Merge to New: Set the Merge Tiles in the right list as new tiles. In this case, set the target Tile directory, target Tile Name or MongoDB database information according to the selected Storage Format.
- When selecting the original and compact Storage Format, you need to select the storage directory of the target Tile and define the name of the target Tile;
- When selecting a MongoDB Storage Format, you need to set the server address, Database Name, Tile Name, Username, and password.
- In the right area of the dialog box, set the Tile participating in the merge and the merge order:
- Participate in the merge version: check the Tile participating in the merge in front of the Tile list;
- Tile Order: The upper and lower order of the tiles in the list affects the Union Result. Adjust the merging order of the tiles through the order adjustment button on the upper side of the Tile list box. The order of the merge operation is from top to bottom. Merge Tiles1 and Tile2 are taken as examples in the following figure:
Tile NameTile sortIllustrationWhen the merging order is 1 before 2 or Tile2 is merged into Tile1, the overlapped part is Tile2 covering Tile1 When the merging order is 2 before 1 or Tile1 is merged into Tile2, the overlapping part is Tile1 covering Tile2 Merge Tiles Overlap Processing:
- Grid Merge Tiles
- When the merged Tile image type is PNG and Background Transparency is selected, the Tile overlapping area program will perform fusion processing, which can be used to deal with the problem of data merging.
- When Merged Tile Type: is selected as the JPG _ PNG format, the file format of the tile (at the boundary of the map) containing invalid data pixels is PNG, otherwise, it is JPG Format. The Tile overlap area program can automatically determine which format to use according to whether the tile contains invalid data pixels, and can be used to solve the white image problem at the edge of the tile.
- Except for the above two types of Tile Type:, the overlapping areas of other types of Merge Tiles are covered in the order of Merge Tiles.
- Vector Merge Tiles
- Vector Tile Data: Vector tiles in the merged overlapping area are overwritten in the order of Merge Tiles.
- Tile Style: If the merged Vector tile styles are inconsistent, the style file with the same name will be replaced according to the merging order, and the style file with a different name will be retained.
- Open multiple processes: Support setting multiple processes for Merge Tiles. The user can reasonably set the number of processes according to the machine resources to improve the merging performance.
- Click the OK button to execute the merge operation. After the merge is completed, the Output Window will give a prompt that the merge is successful.
Application example
The Raster Tile data ofglobal halo rendering is divided into upper and lower parts, which are stored in local and MongoDB respectively. Now, the two parts of data need to be merged into one part for use. The results shown in the following figure are obtained through the Merge Tiles function:
Figure: Local Tiles and MongoDB Merge Tiles Result |