Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/outdooractive/mvt-postgis

Postgis extensions for mvt-tools
https://github.com/outdooractive/mvt-postgis

geojson geospatial gis mapnik mvt postgis swift vector-map vector-tiles

Last synced: about 1 month ago
JSON representation

Postgis extensions for mvt-tools

Awesome Lists containing this project

README

        

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FOutdooractive%2Fmvt-postgis%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/Outdooractive/mvt-postgis)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FOutdooractive%2Fmvt-postgis%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/Outdooractive/mvt-postgis)

# MVTPostgis

Creates vector tiles from Postgis databases.

## Requirements

This package requires Swift 5.9 or higher (at least Xcode 13), and compiles on macOS (\>= macOS 13) as well as Linux.

## Installation with Swift Package Manager

```swift
dependencies: [
.package(url: "https://github.com/Outdooractive/mvt-postgis", from: "1.0.5"),
],
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](https://swiftpackageindex.com/Outdooractive/mvt-postgis/main/documentation/mvtpostgis).

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

## Author

Thomas Rasch, Outdooractive