Skip to content
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

Support for .pmtiles file format #508

Closed
nyurik opened this issue Dec 7, 2022 · 5 comments · Fixed by #517
Closed

Support for .pmtiles file format #508

nyurik opened this issue Dec 7, 2022 · 5 comments · Fixed by #517
Assignees

Comments

@nyurik
Copy link
Member

nyurik commented Dec 7, 2022

We need to support .pmtiles files as a tile source.

Partial implementation is in https://github.com/nyurik/martin/tree/mbtiles

@nyurik nyurik self-assigned this Dec 7, 2022
@BigData-YC

This comment was marked as off-topic.

@nyurik

This comment was marked as off-topic.

@BigData-YC

This comment was marked as off-topic.

@BigData-YC

This comment was marked as off-topic.

@nyurik
Copy link
Member Author

nyurik commented Dec 21, 2022

@BigData-YC see #288

nyurik added a commit that referenced this issue Jan 8, 2023
Merge after #548 

Adds a new [.pmtiles](https://protomaps.com/docs/pmtiles/) backend.
Supports all formats like png, vector, etc.

From CLI, can be as easy as adding a path to a directory that contains a
.pmtiles file:

```bash
# All *.pmtiles files in this dir will be published.
# The filename will be used as the source ID
martin ./tests/fixtures
```

From configuration file, the path can be specified in a number of ways:

```yaml
pmtiles:
  paths:
    # scan this whole dir, matching all *.pmtiles files
    - /dir-path
    # specific pmtiles file will be published as pmtiles2 source
    - /path/to/pmtiles2.pmtiles
  sources:
      # named source matching source name to a single file
      pm-src1: /tmp/pmtiles.pmtiles
      # named source, where the filename is explicitly set. This way we will be able to add more options later
      pm-src2:
        path: /tmp/pmtiles.pmtiles
```

Fixes #508
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants