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 Geofabrik.de .
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 Geofabrik.de 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 - (http://osmz.ru/osm2008.html#8/47.066/8.550)
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 Geofabrik.de to show the historical developement from 2006 to 2009.
http://www.geofabrik.de/de/gallery/history/index.html

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:
https://www.openstreetmap.org/user/yogi_ks/diary/35067
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, 00:31

Grohnwald's gravatar image

Grohnwald
112
accept rate: 0%


Hi,

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

https://wiki.openstreetmap.org/wiki/Planet.osm/full

permanent link

answered 07 Feb, 01:25

kocio's gravatar image

kocio
1.6k1834
accept rate: 21%

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, 03:56) Grohnwald

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

permanent link

answered 07 Feb, 02:01

Rassilon's gravatar image

Rassilon
152
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, 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, 13:40

SK53's gravatar image

SK53 ♦
21.9k45227343
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×370
×308
×140
×78
×64

question asked: 07 Feb, 00:31

question was seen: 167 times

last updated: 07 Feb, 13:40

powered by OSQA