maplibre/martin
GitHub: maplibre/martin
基于 Rust 的高性能矢量切片服务器,支持从 PostGIS、PMTiles 和 MBTiles 快速提供地图切片服务并附带完整的切片工具链。
Stars: 3447 | Forks: 333
[](https://maplibre.org/martin/)
[](https://maplibre.org/martin)
[](https://docs.rs/martin)
[](https://slack.openstreetmap.us/)
[](https://github.com/maplibre/martin)
[](https://crates.io/crates/martin)
[](https://github.com/maplibre/martin/security)
[](https://github.com/maplibre/martin/actions)
[](https://app.codecov.io/gh/maplibre/martin)
[](https://www.bestpractices.dev/projects/11613)
Martin 是一个 tile server 和一套工具,能够从大型 `PostgreSQL` 数据库即时生成矢量切片 (vector tiles),并从 `PMTiles` 和 `MBTiles` 文件提供切片服务。Martin 针对速度和高流量进行了优化,使用 [Rust](https://github.com/rust-lang/rust) 编写。
## 功能特性
* 从以下来源提供 [矢量切片](https://github.com/mapbox/vector-tile-spec) 服务
* [PostGIS](https://github.com/postgis/postgis) 数据库,自动发现兼容的表和函数
* [PMTile](https://protomaps.com/blog/pmtiles-v3-whats-new),支持本地文件和通过 HTTP 访问
* [MBTile](https://github.com/mapbox/mbtiles-spec) 文件
* 将多个切片源 [合并](https://maplibre.org/martin/sources-composite.html) 为一个
* 提供 [样式](https://maplibre.org/martin/sources-styles.html) 服务,并即时生成 [sprites](https://maplibre.org/martin/sources-sprites.html) 或 [字体字形](https://maplibre.org/martin/sources-fonts.html)
* 使用 [martin-cp](https://maplibre.org/martin/martin-cp.html) 工具从任何 Martin 支持的源批量生成切片到 `MBTiles` 文件中
* 使用 [mbtiles](https://maplibre.org/martin/tools.html#mbtiles) 工具检查、复制、验证、比较 `MBTiles` 文件并在它们之间应用差异
## 文档
* [快速开始](https://maplibre.org/martin/quick-start.html)
* [安装](https://maplibre.org/martin/installation.html)
* 使用 [CLI](https://maplibre.org/martin/run-with-cli.html)
或 [配置文件](https://maplibre.org/martin/config-file.html) 运行
* [使用方法与 API](https://maplibre.org/martin/using.html)
## 许可证
根据以下任一许可证授权
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) 或 )
* MIT license ([LICENSE-MIT]( ) 或 )
您可任选其一。
### 贡献
除非您明确声明,否则根据 Apache-2.0 许可证的定义,您有意提交以包含在本作品中的任何贡献,均应按上述方式双重许可,无需任何附加条款或条件。
标签:GIS, Mapbox, MapLibre, MBTiles, PMTiles, PostGIS, PostgreSQL, Rust, Web地图, Web地图开发, 切片生成, 可视化界面, 后端服务, 地图服务器, 地理信息系统, 实时渲染, 开源, 数据切片, 测试用例, 瓦片服务, 矢量切片, 空间数据可视化, 空间数据库, 网络流量审计, 脚本检测, 通知系统