Two feature requests for applications building on PMTiles:
-
Direct S3 output for pmtiles extract
pmtiles extract s3://bucket/input.pmtiles s3://bucket/output.pmtiles --bbox=... --maxzoom=...
Write output directly to S3 instead of local disk (useful in disk-constrained environments)
Eliminates the extra pmtiles upload step
-
HTTP extract endpoint in pmtiles serve
Expose /extract as a GET (or POST?) route that accepts source file, bbox, maxzoom, etc. as parameters, backed by a ExtractToWriter method, that writes back into the HTTP response stream.
This would enable stateless, on-the-fly extracts useful for cases like pmtiles-offline, where small regional extracts need to be generated dynamically.
I've got some working code implementing these because I wanted to make sure it was possible to reuse the core extract algorithm - and it is, but wanted to raise an issue to discuss first to check your thoughts before opening a PR.
Thanks!