From 763c0e8099b66ed7533568f03b44829691dac6e5 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Wed, 26 Oct 2022 23:21:23 +0800 Subject: [PATCH] UPLOAD recipes --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4b34fbe..a37917b 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,20 @@ Example of how to create a PMTiles archive from the [Census Bureau Zip Code Tabu pmtiles convert cb_2018_us_zcta510_500k_nolimit.mbtiles cb_2018_us_zcta510_500k_nolimit.pmtiles ``` +### Uploading to Storage + +Using the [PMTiles command line tool](http://github.com/protomaps/go-pmtiles): + +```sh +pmtiles upload LOCAL.pmtiles "s3://BUCKET_NAME?endpoint=https://example.com®ion=region" REMOTE.pmtiles +``` + +Using [RClone](https://rclone.org) (do `rclone config` first) + +```sh +rclone copyto LOCAL.pmtiles r2:/BUCKET/REMOTE.pmtiles --progress --s3-chunk-size=256M --s3-upload-concurrency=2 +``` + ## License The reference implementations of PMTiles are published under the BSD 3-Clause License. The PMTiles specification itself is public domain, or under a CC0 license where applicable.