NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum

Hello everyone,
I am new here and english ist not my native language so I`m sorry for mistakes and inconveniences.
I am a college Student of Geoscience and I started a project some weeks ago.
I built an Tileserver which gives out a slippy map from some european countries I renderd from osm.pbf files from .
It is build on an Ubuntu Server 18.10 LTS, 64Bit, runnig in a VM with an Xeon CPU with 3,70Ghz, but just one Core and 5GB of Ram. It is running an apache server and a Postrgresql-Database with PostGis. I do imports of osm.pbf-files with osm2pgsql, for example Switzerland. For the rendering and tileserving I use Mapnik with renderd and mod_tile. For displaying the map tiles i use Leaflet and Openlayers. It works.

Now i would like to show the change history of nodes, ways and relatives which were done over the last months or years. Something like switzerland on a slippy map and with a manually used switch or slider you can show the same map but a month ago or a year by sliding left or right.
First I thougth about to download the oldest planet.osm.pbf file from from 2013, use the tool osmconvert to get the data from switzerland and import this data in Postgresql.
Then render new tiles of the old switzerland dataset and let them be served from a second mod_tile (mod_tile2) directory.
Then I could use a javascript layerswipe in openlayers, to show a map from 2018 and switch to layer upon to show the same map from 2013.
For example like this comparison of OpenStreetMap from 2008 but with a slider - (
If this should work i repeat the procedure with 2014, 2015, 2016 and 2017. Starting by every first Planet.osm.pbf of a year.

My real questions are now, how stupid is this idea?
Would this work the way I planned or should I dump this idea?
Where are the problems and risks ... or impossibilities?
Where could I find even older OSM data to work with?
I searched the net for solutions like this but didn`t found a similar procedure.

I know there a better ways to show the history of changes in OSM maps. But I lack the knowledge and the comprehension to get to a complex solution like these ones. And I don`t know if my tileserver as it is now ... and my skills, are suited for these kind of solutions.

A more fashionable solution would be a gif animation like from the gallery of to show the historical developement from 2006 to 2009.

I am also very interested in a solution like the awesome project of the user "yogi__ks" as an kind of overlay on a existing map:
Will test this out separately on a second VM

I would appreciate every suggestion, scolding or educational web link.

Thank you very much for reading and for responding. And sorry for this amount of text.

asked 07 Feb '19, 00:31

Grohnwald's gravatar image

accept rate: 0%


Maybe a planet file with a full history would be useful to you?

permanent link

answered 07 Feb '19, 01:25

kocio's gravatar image

accept rate: 20%

Thanks for the answer. I stumbled over this idea by my "researches" but I didn't got the comprehension how to show the order of events of changes for months or years from only one planet file. I know there are ways, but I don't know how to perform them with my currently server Setup. Maybe you have link for me which I could follow?

(07 Feb '19, 03:56) Grohnwald

I can't help with your project but if you only want Switzerland data you can download go here and click on "Raw directory index" to get older files going back to 2014.

permanent link

answered 07 Feb '19, 02:01

Rassilon's gravatar image

accept rate: 0%

Thanks for the suggestion. I wanted also to import and render other countries and perform the procedure like on switzerland. But I got problems with my slippymap when I did import and render tiles from osm.pbf files of another country. Some zoomlayers did show blank tiles, some zoomlayers were completely blank. A colleague of mine suggested the reason could be the different timestamp of the different osm_pbf files I used. So thought I extract the data for every country in one mod_tile directory from the same planet file.

(07 Feb '19, 04:21) Grohnwald

The correct resources tools to do this are:

  • Full History files (from Geofabrik)
  • Osmium or Osmium tool (which can generate a time-snapshot from the .osh file)

You should look at MaZderMind's GitHub repository too.

The fundamental problem is re-inventing the wheel for osm2pgsql's polygon assembly routines, which is non-trivial (particularly for relations.

permanent link

answered 07 Feb '19, 13:40

SK53's gravatar image

SK53 ♦
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 07 Feb '19, 00:31

question was seen: 2,092 times

last updated: 07 Feb '19, 13:40

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum