Skip to content

Commit 280fdeb

Browse files
committed
cli: add section on pmtiles merge
1 parent 77eb821 commit 280fdeb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pmtiles/cli.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ Options:
120120
* `--download-threads` Number of parallel requests to speed up downloads.
121121
* `--overfetch` extra data to download to batch small requests: 0.05 is 5%.
122122

123+
### merge
124+
125+
```bash
126+
pmtiles merge INPUT_1.pmtiles INPUT_2.pmtiles OUTPUT.pmtiles
127+
pmtiles merge INPUT_1.pmtiles INPUT_2.pmtiles INPUT_3.pmtiles OUTPUT.pmtiles
128+
```
129+
130+
Combine disjoint archives into a single archive. The output archive contains all tile data in the inputs. All inputs must be clustered and match in tile type and compression.
131+
123132
### serve
124133

125134
The simplest way to consume PMTiles on the web is directly in the browser with [pmtiles.js along with a renderer-specific client](/pmtiles/maplibre). However, decoding PMTiles on the server and exposing a ZXY API works with more clients and can result in lower latency. A ZXY API is directly supported by web and native renderers such as [MapLibre](https://maplibre.org), without needing the PMTiles client library. Using `pmtiles serve` also allows serving a public API from a private storage bucket.

0 commit comments

Comments
 (0)