Aggiorna README.md
This commit is contained in:
parent
bbf5649721
commit
61f927fb2a
1 changed files with 44 additions and 2 deletions
46
README.md
46
README.md
|
|
@ -41,10 +41,52 @@ Utilizza merge_tiles.sh
|
|||
|
||||
crea una dir merged_tiles che può essere utilizzata con mb-util
|
||||
|
||||
5️⃣
|
||||
5️⃣ Trasforma in mbtiles
|
||||
|
||||
mb-util --image_format=png merged_tiles italy.mbtiles
|
||||
|
||||
|
||||
6️⃣
|
||||
6️⃣ Inserisci i metatata
|
||||
|
||||
```
|
||||
sqlite3 italy.mbtiles <<EOF
|
||||
DELETE FROM metadata;
|
||||
|
||||
INSERT INTO metadata (name, value) VALUES ('name', 'Italy Terrain RGB');
|
||||
INSERT INTO metadata (name, value) VALUES ('description', 'Copernicus DSM 10m encoded as Mapbox Terrain-RGB');
|
||||
INSERT INTO metadata (name, value) VALUES ('format', 'png');
|
||||
INSERT INTO metadata (name, value) VALUES ('type', 'baselayer');
|
||||
INSERT INTO metadata (name, value) VALUES ('version', '1.0');
|
||||
INSERT INTO metadata (name, value) VALUES ('minzoom', '5');
|
||||
INSERT INTO metadata (name, value) VALUES ('maxzoom', '14');
|
||||
INSERT INTO metadata (name, value) VALUES ('bounds', '6.0,36.0,19.0,47.0');
|
||||
INSERT INTO metadata (name, value) VALUES ('center', '12.0,42.0,6');
|
||||
INSERT INTO metadata (name, value) VALUES ('attribution', 'EU Copernicus DSM 10m');
|
||||
EOF>>
|
||||
```
|
||||
puoi verificare con
|
||||
|
||||
```
|
||||
sqlite3 italy.mbtiles "SELECT * FROM metadata;"
|
||||
```
|
||||
|
||||
deve dare
|
||||
|
||||
```
|
||||
{
|
||||
"name": "Italy Terrain RGB",
|
||||
"description": "Copernicus DSM 10m encoded as Mapbox Terrain-RGB",
|
||||
"format": "png",
|
||||
"type": "baselayer",
|
||||
"version": "1.0",
|
||||
"minzoom": "5",
|
||||
"maxzoom": "14",
|
||||
"bounds": "6.0,36.0,19.0,47.0",
|
||||
"center": "12.0,42.0,6",
|
||||
"attribution": "EU Copernicus DSM 10m"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
🎯 Risultato
|
||||
Hai un terrain globale ad alta qualità, basato su Copernicus GLO‑30, pronto per TileServer‑GL.
|
||||
|
|
|
|||
Loading…
Reference in a new issue