-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement PMTiles S3 bucket support with authentication #1171
Comments
for configuration, we currently have this pattern: pmtiles:
paths:
# scan this whole dir, matching all *.pmtiles files
- /dir-path
# specific pmtiles file will be published as a pmt source (filename without extension)
- /path/to/pmt.pmtiles
# A web server with a PMTiles file that supports range requests
- https://example.org/path/tiles.pmtiles
sources:
# named source matching source name to a single file
pm-src1: /path/to/pmt.pmtiles
# A named source to a web server with a PMTiles file that supports range requests
pm-web2: https://example.org/path/tiles.pmtiles We can add s3 support as either an pmtiles:
s3:
[...something...]
pmtiles-s3:
[...something...] Config should cover the following cases:
So it seems the usage is similar to postgres configuration, where we can have one or more pg connection (i.e. s3 authentication), and each connection can have one or more table (i.e. pmtiles files), and the table name can be declared in the config (with the corresponding source name), or they can be auto-discovered, in which case the source name is auto-generated, e.g. |
The protomaps/PMTiles supports specifying a bucket (and a path prefix), and allows fetching any pmtiles object by name, rather than having to specify them all ahead of time, or listing the objects. Would require some refactoring here, but it's a sensible way to avoid expensive reconfigurations. |
Hi! I would be interested in implementing this if noone has started on it yet! |
pmtiles
crate will soon support s3 buckets directly. Martin needs to enable support for S3-hosted pmtilesTODO
PmtS3Source
similar toPmtHttpSource
Developers can already use by adding this at the end of the root Cargo.toml:
See also #1125
CC: @alexjball @lseelenbinder
The text was updated successfully, but these errors were encountered: