Produit concerné / Related product

JMap Server

Versions

7

Mapbox Tile Seeder est un script python externe à JMap Server dont le but est de créer, réamorcer ou supprimer en partie ou en tout les tuiles Mapbox d'un projet. 

Le script appelle le endpoint de l'API pour demander chaque tuile pour l'étendue d'un projet. 

Mapbox Tile Seeder fonctionne dans Windows (64), MACOS et Ubuntu (16, 18 et 20).

Guide étape par étape

Paramètres d'entrée

Input pour Mapbox Tile Seeder

Positional arguments:

Optional arguments:

show this help message and exit

Username (Default='Administrator')

Password (Default='')

Session Id

True, close the session. (Default=true)

True, enable caching. (Default=true)

True, reseed the tiles in the cache. (Default=false)

True, truncate the tiles in the cache. (Default=false)

The x max extent (BBOX in EPSG:3857)

The x min extent (BBOX in EPSG:3857)

The y max extent (BBOX in EPSG:3857)

The y min extent (BBOX in EPSG:3857)

The min zoom level (>= 0)

The max zoom level (<= 21)

True, to enable JSON output responses. (Default=false)

True, to enable JSON report. (Default=false)

The name of the output file with JSON extension (Exemple: output.json)

Processus

L'outil fait les tâches suivantes, schématisées dans le diagramme :

  1.  Se connecte à JMap Server avec :
     Nom d'utilisateur et mot de passe (Utilisateur par défaut : 'administrator' et mot de passe : ' ')
     Ou Session Id

  2. Obtient les informations du projet nécessaires pour la mise en marche du cache.

  3. Calcule le min/max de chaque niveau de zoom à partir du niveau de zoom initial.
    Peut aussi utiliser l'étendue du projet donnée comme argument.  

  4. Démarre la mise en cache, le réensemencement ou la suppression des tuiles dans JMap Server. 

  5. Ferme la session.

Output

Le processus met en cache, réamorce le cache ou le supprime dans JMap Server. 

Des résultats optionnels sont :

Exemples

1. Faire le cache d'un Projet (EPSG:3857) des niveaux de zoom 9 à 16 et dont le id du projet est 1 (User: admin/Password: pass1234).

2. Faire le cache d'un Projet (EPSG:32188) des niveaux de zoom 9 à 16 et dont le id du projet est 1 (User: admin/Password: pass1234).

3. Réamorcer un Projet (EPSG:32188) des niveaux de zoom 9 à 16 et dont le id du projet est 1 (User: admin/Password: pass1234).

4. Tronquer un Projet (EPSG:32188) des niveaux de zoom 9 à 16 et dont le id du projet est 1 (User: admin/Password: pass1234).

5. Voir un Projet (EPSG:32188) en mettant en cache l'information seulement pour les niveaux de zoom 9 à 16 et dont le id du projet est 1 (User: admin/Password: pass1234).

6. Faire le cache d'un Projet (EPSG:3857) des niveaux de zoom 9 à 16 et dont le id du projet est 1 (session id: 1234567789).

Télécharger l’outil

Linux (Ubuntu 20.4) : https://downloads.jmaponline.net/TileSeeder/v1.1.0/ubuntu_20.4_LTS/MapboxTileSeeder

MacOS : https://downloads.jmaponline.net/TileSeeder/v1.1.0/macOS/MapboxTileSeeder

Windows : https://downloads.jmaponline.net/TileSeeder/v1.1.0/windows/MapboxTileSeeder.exe


English version

Mapbox Tile Seeder is a python script external to JMap Server that will create, delete or reseed all or for a selected extend the Mapbox tiles from a project.

The script can call the API endpoints in order to request every possible tile for a project extend.

Mapbox Tile Seeder works on Windows (64), MACOS and Ubuntu (16, 18 et 20) environments.

Step-by-step guide

Input parameters

Input of Mapbox Tile Seeder

Positional arguments:

Optional arguments:

show this help message and exit

Username (Default='Administrator')

Password (Default='')

Session Id

True, close the session. (Default=true)

True, enable caching. (Default=true)

True, reseed the tiles in the cache. (Default=false)

True, truncate the tiles in the cache. (Default=false)

The x max extent (BBOX in EPSG:3857)

The x min extent (BBOX in EPSG:3857)

The y max extent (BBOX in EPSG:3857)

The y min extent (BBOX in EPSG:3857)

The min zoom level (>= 0)

The max zoom level (<= 21)

True, to enable JSON output responses. (Default=false)

True, to enable JSON report. (Default=false)

The name of the output file with JSON extension (Exemple: output.json)

Processus

This script will :

  1.  Connect to JMap Server with:
     Username and Password (Default username: 'administrator' and password: ' ')
     Or Session Id

  2. Get the project information need it for the process of caching

  3. Calculate the min/max for each zoom level from the initial zoom level
    Or use the extend given as argument.

  4. Start caching,reseeding or deleting  the tiles in JMap Server.

  5. Close the session.

Output

The process cache, delete or reseed tiles in JMap Server.

Optional output:

Diagram

Exemples

1. Cache a Project (EPSG:3857) from zoom level 9 to 16 and the project id is 1(User: admin/Password: pass1234).

2. Cache a Project (EPSG:32188) from zoom level 9 to 16 and the project id is 1 (User: admin/Password: pass1234).

3. Reseed a Project (EPSG:32188) from zoom level 9 to 16 and the project id is 1 (User: admin/Password: pass1234).

4. Truncate a Project (EPSG:32188) from zoom level 9 to 16 and the project id is 1 (User: admin/Password: pass1234).

5. View a Project (EPSG:32188) caching information only from zoom level 9 to 16 and the project id is 1 (User: admin/Password: pass1234).

6. Cache a Project (EPSG:3857) from zoom level 9 to 16 and the project id is 1 (session id: 1234567789).

Download the tool

Linux (Ubuntu 20.4) : https://downloads.jmaponline.net/TileSeeder/v1.1.0/ubuntu_20.4_LTS/MapboxTileSeeder

MacOS : https://downloads.jmaponline.net/TileSeeder/v1.1.0/macOS/MapboxTileSeeder

Windows : https://downloads.jmaponline.net/TileSeeder/v1.1.0/windows/MapboxTileSeeder.exe