Distribute the tile set

Feedback


The map tiles data in distributed tile repository will be used in the corresponding map service automatically. Except this way, it also supports to distribute in different ways.

Export SMTiles files

A distributed tile repository can store multiple map tiles. Every map corresponds to a tile set. SuperMap iServer supports to export the tile set into SMtiles format (*.smtiles、*.mbtiles), which is convenient for offline usage in propagation and client (such as iClient Flash Bev, iClient for Android and so on).

Access the Distributed tiles library to view the distributed tile repository in the current, and the storage ID, type, service address and so on.

Click the storage ID to view the details in the current tile library, such as the tile list. A tile set corresponds to a map. You can click tile set to view the tile range, picture format, scale and so on. Export SMTiles through the Export button. Fill in with the export directory and specify the tiles needs to be exported through some parameters, such as scale, ranges and so on.

Click the Download link to download the files to local.

Copy and distribute MongoDB storage tiles

The tiles in MongoDB supports to copy and distribute directly, that is, you can copy the data from one MongoDB server to another. But in order to avoid other data written into monggndb service in copying, it is suggested that close all MonggnDB server before copying.

Method1: Copy data folder directly

For example, there are server1 and server2 MongoDB servers. Data storage directory (dbpath) are all the data folder in the root directory. You just need to copy the data of server1 to server2, and restart server2.

Method 2: Use the export/import

1. Start server1 services (port is 27017)

mongod.exe -dbpath D:\mongodb1\data -port 27017

2. Export the smtiles data in server1 to the BSON files

mongodump.exe -host localhost -port 27017 -d smtiles -o D:\output

"-d" specifies the database name. The default name is smtiles. "-o" specifies the export directory.

3. Copy the data to a location that server2 can access

4. Start server2 services (port is 27018)

mongod.exe -dbpath D:\mongodb2\data -port 27018

5. Import BSON file into server2

mongorestore.exe -host localhost -port 27018 -d smtiles D:\output\smtiles

"-d" specifies database name and file storage location.

Description:

All data files of MongoDB are in {dbpath}/data. The second method save more than half space than the first method. It is suggested to use the second method.