Generate vector tiles in MBTiles format from an osm2pgsql database.
This repository contains custom code for generating extracts with railway data for OpenRailwayMap, but you may use it as a basis for your own generation of custom MBTiles extracts.
Follow the installation instructions.
Once you installed all dependencies like described in the installation instructions, generating vector tiles is very easy:
To export the data from the database and generate a mbtiles vector tileset, simply run:
$ make export
To remove all local .mbtiles
and .geojson
files, run:
$ make clean
You can also just execute make all
to clean up local files, (re-)install the database export views and create the mbtiles:
$ make all
Contributions to this project are welcome, read the contribution guidelines for further details and developer information.
If you would like to report an issue, please use the issue tracker on GitHub.
This project is maintained by Alexander Matheisen.
Github provides a full list of contributors.
This project is licensed under the MIT License. See LICENSE for further information.