outdooractive/mvt-postgis
Creates vector tiles from Postgis databases.
Requirements
This package requires Swift 5.10 or higher (at least Xcode 14), and compiles on macOS (\>= macOS 14) as well as Linux.
Installation with Swift Package Manager
dependencies: [
.package(url: "https://github.com/Outdooractive/mvt-postgis", from: "1.2.4"),
],
targets: [
.target(name: "MyTarget", dependencies: [
.product(name: "MVTPostgis", package: "mvt-postgis"),
]),
]This project uses to other libraries that handle the hard work, please have a look at them as well:
- https://github.com/Outdooractive/gis-tools
- https://github.com/Outdooractive/mvt-tools
Features
TODO
Usage
Please see also the API documentation.
TODO
Contributing
Please create an issue or open a pull request with a fix
TODOs and future improvements
- Restart queries after timeout
- Explore ST_AsMVTGeom
- Documentation (!)
- Tests
Links
- Libraries
- https://github.com/Outdooractive/gis-tools - https://github.com/Outdooractive/mvt-tools
- Mapnik Postgis documentation:
- https://github.com/mapnik/mapnik/wiki/PostGIS - https://github.com/mapnik/mapnik/wiki/OptimizeRenderingWithPostGIS
- Mapnik files:
- https://github.com/mapnik/mapnik/blob/master/test/unit/datasource/postgis.cpp - https://github.com/mapnik/mapnik/blob/master/plugins/input/postgis/postgis_datasource.cpp
- Other:
- https://github.com/plarson/fluent-postgis - https://github.com/koher/swift-image - https://github.com/t-ae/swim - https://github.com/GEOSwift/GEOSwift
License
MIT
Package Metadata
Repository: outdooractive/mvt-postgis
Default branch: main
README: README.md