Comments (2)
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 s3
subsection under pmtiles
, or by adding a new top level pmtiles-s3
. I think the first option is better, but it might be trickier to implement.
pmtiles:
s3:
[...something...]
pmtiles-s3:
[...something...]
Config should cover the following cases:
- one s3 bucket with a single pmtiles file
- one s3 bucket with multiple pmtiles files
- file names are listed in the config
- files are auto-discovered (using s3 enumeration - requires additional permission)
- multiple s3 buckets
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. {filename}
or {bucket}_{filename}
.
from martin.
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.
from martin.
Related Issues (20)
- Website breaks when you click on Jan 1st in the demo
- Add a Tile Preview HOT 1
- How to handle dynamic sources? HOT 2
- For `--auto-bounds quick`, use `ST_EstimatedExtent` instead of `ST_Extent` for quicker results HOT 3
- `Event not found` when starting martin HOT 3
- Add file extension to individual tile URL
- Output valid TileJSON for PostgreSQL Function Sources HOT 2
- Failed local installation due to mismatched types compilation error HOT 1
- What happens when a new materialized view / table added to the database? HOT 1
- db error: ERROR: column ix.indnkeyatts does not exist HOT 6
- Detect old postgresql versions and warn user HOT 2
- version `GLIBC_2.33' not found (required by mbtiles) HOT 6
- martin-cp doc source param HOT 3
- Improve mbtiles diff validation, add new metadata field, usability
- Reduce README, moving more things to the book
- Improve docs with recommended use cases for novice users
- ghcr.io/maplibre/martin:main not found HOT 3
- Fix broken docs links
- Add a tutorial for novice user
- Martin panics at start due to Postgres pool issue HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from martin.