https://github.com/nyurik/postile
PostgreSQL extension to generate map tiles
https://github.com/nyurik/postile
Last synced: 18 days ago
JSON representation
PostgreSQL extension to generate map tiles
- Host: GitHub
- URL: https://github.com/nyurik/postile
- Owner: nyurik
- License: apache-2.0
- Created: 2024-02-06T07:11:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-02T02:34:22.000Z (27 days ago)
- Last Synced: 2025-04-02T03:29:11.686Z (27 days ago)
- Language: Rust
- Size: 156 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# postile
[](https://github.com/nyurik/postile)
[](https://github.com/nyurik/postile/actions)A PostgreSQL extension with various map tile generation functions. Some functions could help generating tiles for [Martin tile server](https://maplibre.org/martin/) and similar projects.
## Usage
```sql
CREATE EXTENSION postile;-- Compress with gzip, and return as bytea.
-- Optional second argument is the compression level, 1-9.
SELECT pt_gzip('Hello, world!');-- Compress with Brotil, and return as bytea.
SELECT pt_brotli('Hello, world!');
```## Development
* This project is easier to develop with [just](https://github.com/casey/just#readme), a modern alternative to `make`.
Install it with `cargo install just`.
* To get a list of available commands, run `just`.
* To run tests, use `just test`.## License
Licensed under either of
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or )
* MIT license ([LICENSE-MIT](LICENSE-MIT) or )
at your option.### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the
Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.