tilery / pianoforte

Generic purpose map rendering in two flavours.
http://tiles.quaidorsay.fr/
Creative Commons Zero v1.0 Universal
28 stars 8 forks source link

Piano-Forte

A world map in two flavours:

And three languages: French, English, Arabic.

Forte

screenshot from 2017-10-02 09-33-18 screen shot 2017-10-31 at 18 50 50-fullpage

Piano

screenshot from 2016-08-23 08-50-12 screenshot from 2016-08-23 08-51-19

Local installation

Create a pianoforte PSQL database:

sudo -u postgres createdb pianoforte -O youruser

Clone this repository:

git clone https://github.com/tilery/pianoforte

Compile the world boundaries:

make boundary

Download the PBF from Geofabrik:

make download

Note: you can use another area by setting the PBF env var to the Geofabrik relative path (default is: africa/egypt-latest.osm.pbf).

Import the PBF and the boundaries into the database:

make import

Copy the localconfig sample, and change the db configuration inside:

cp localconfig.js.sample localconfig.js

Run kosmtik with forte:

kosmtik serve forte.yml

Or with piano:

kosmtik serve piano.yml

Production deployment

Overview

Dependencies

Instructions

Note: the database is named tilery to follow conventions in the Mapnik XML generated in the dist/ of the project, see below.