EpicKiwi / rouen-mapnik-style

Mapnik style of Rouen city

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rouen map rendering

Mapnik style of Rouen city

Full render of map poster

Get a full render in PDF or PNG.

Render it yourself

You can build the map yourself by retreiving data and building with mapnik.

Clone this repository and download the data from Rouen fron Planet.osm. You can download an extract using BBBike. You must download it as .osm.pbf and place it as rouen.osm.pbf in repository root.

Run docker compose to start Postgres and copy extracted data into postgres. It takes usually 45s to 1min to setup postgres database.

docker-compose up

You're now ready to build the map using the provided script render.sh

./render.sh

Rendered maps are available as render.png and render.svg.

Directory structure

  • docker-compose.yml describe the docker infrastructure required to build the map

  • render.py the main mapnik script used to define image size, output type, etc.

  • style.xml the mapnik XML style

  • render.sh render script calling mapnik container to render

  • layout.afdesign Affinity designer file used to render the full poster

  • gros-horloge.afdesign Affinity designer file used to add some pictos for the Gros-Horloge monument (abandonned)

  • get-extent.pgsql A query sample calculating the extent you can use in your style

Resources

About

Mapnik style of Rouen city


Languages

Language:Python 61.7%Language:PLpgSQL 24.8%Language:Shell 13.6%