Skip to content

Commit

Permalink
deploy: aeb08c8
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Dec 2, 2023
1 parent 16cea72 commit 7085a02
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions martin-cp.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,19 @@ <h1 class="menu-title">Martin Tile Server Documentation</h1>
<div id="content" class="content">
<main>
<h1 id="generating-tiles-in-bulk"><a class="header" href="#generating-tiles-in-bulk">Generating Tiles in Bulk</a></h1>
<p><code>martin-cp</code> is a tool for generating tiles in bulk, and save retrieved tiles into a new or an existing MBTiles file. It can be used to generate tiles for a large area or multiple areas. If multiple areas overlap, it will generate tiles only once. <code>martin-cp</code> supports the same configuration file and CLI arguments as Martin server, so it can support all sources and even combining sources.</p>
<p><code>martin-cp</code> is a tool for generating tiles in bulk, from any source(s) supported by Martin, and save retrieved tiles into a new or an existing MBTiles file. <code>martin-cp</code> can be used to generate tiles for a large area or multiple areas (bounding boxes). If multiple areas overlap, it will ensure each tile is generated only once. <code>martin-cp</code> supports the same configuration file and CLI arguments as Martin server, so it can support all sources and even combining sources.</p>
<p>After copying, <code>martin-cp</code> will update the <code>agg_tiles_hash</code> metadata value unless <code>--skip-agg-tiles-hash</code> is specified. This allows the MBTiles file to be <a href="./mbtiles-validation.html#aggregate-content-validation">validated</a> using <code>mbtiles validate</code> command.</p>
<h2 id="usage"><a class="header" href="#usage">Usage</a></h2>
<p>This copies tiles from a PostGIS table <code>my_table</code> into an MBTiles file <code>tileset.mbtiles</code> using <a href="mbtiles-schema.html">normalized</a> schema, with zoom levels from 0 to 10, and bounds of the whole world. </p>
<pre><code class="language-shell">martin-cp --output-file tileset.mbtiles \
--mbtiles-type normalized \
&quot;--bbox=-180,-90,180,90&quot; \
--min-zoom 0 \
--max-zoom 10 \
--source my_table \
--source source_name \
postgresql://postgres@localhost:5432/db
</code></pre>
<p>You </p>

</main>

Expand Down
6 changes: 4 additions & 2 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -1113,17 +1113,19 @@ <h2 id="mbtiles"><a class="header" href="#mbtiles"><code>mbtiles</code></a></h2>
<p>This tool can be installed by compiling the latest released version with <code>cargo install mbtiles</code>, or by downloading a pre-built binary from the <a href="https://github.com/maplibre/martin/releases/latest">releases page</a>.</p>
<p>The <code>mbtiles</code> utility builds on top of the <a href="https://github.com/mapbox/mbtiles-spec">MBTiles specification</a>. It adds a few additional conventions to ensure that the content of the tile data is valid, and can be used for reliable diffing and patching of the tilesets.</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="generating-tiles-in-bulk"><a class="header" href="#generating-tiles-in-bulk">Generating Tiles in Bulk</a></h1>
<p><code>martin-cp</code> is a tool for generating tiles in bulk, and save retrieved tiles into a new or an existing MBTiles file. It can be used to generate tiles for a large area or multiple areas. If multiple areas overlap, it will generate tiles only once. <code>martin-cp</code> supports the same configuration file and CLI arguments as Martin server, so it can support all sources and even combining sources.</p>
<p><code>martin-cp</code> is a tool for generating tiles in bulk, from any source(s) supported by Martin, and save retrieved tiles into a new or an existing MBTiles file. <code>martin-cp</code> can be used to generate tiles for a large area or multiple areas (bounding boxes). If multiple areas overlap, it will ensure each tile is generated only once. <code>martin-cp</code> supports the same configuration file and CLI arguments as Martin server, so it can support all sources and even combining sources.</p>
<p>After copying, <code>martin-cp</code> will update the <code>agg_tiles_hash</code> metadata value unless <code>--skip-agg-tiles-hash</code> is specified. This allows the MBTiles file to be <a href="./mbtiles-validation.html#aggregate-content-validation">validated</a> using <code>mbtiles validate</code> command.</p>
<h2 id="usage-1"><a class="header" href="#usage-1">Usage</a></h2>
<p>This copies tiles from a PostGIS table <code>my_table</code> into an MBTiles file <code>tileset.mbtiles</code> using <a href="mbtiles-schema.html">normalized</a> schema, with zoom levels from 0 to 10, and bounds of the whole world. </p>
<pre><code class="language-shell">martin-cp --output-file tileset.mbtiles \
--mbtiles-type normalized \
&quot;--bbox=-180,-90,180,90&quot; \
--min-zoom 0 \
--max-zoom 10 \
--source my_table \
--source source_name \
postgresql://postgres@localhost:5432/db
</code></pre>
<p>You </p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="mbtiles-information-and-metadata"><a class="header" href="#mbtiles-information-and-metadata">MBTiles information and metadata</a></h1>
<h2 id="summary"><a class="header" href="#summary">summary</a></h2>
<p>Use <code>mbtiles summary</code> to get a summary of the contents of an MBTiles file. The command will print a table with the number of tiles per zoom level, the size of the smallest and largest tiles, and the average size of tiles at each zoom level. The command will also print the bounding box of the covered area per zoom level.</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 7085a02

Please sign in to comment.