NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Nepal was struck by a devastating earthquake on April 25, 2015. Since then a lot of mapping was done in osm. I want to compare the state of osm map before and after earthquake and generate different stats. But getting hold of this data is very difficult. Can anyone advice me ways to get this kind of data for Nepal?

asked 05 Aug '15, 08:21

MeghaShrestha's gravatar image

MeghaShrestha
41225
accept rate: 0%


You will have to use a software called osm-history-splitter with the full history planet file from planet.openstreetmap.org to make your own Nepal excerpt.

Alternatively, there's a couple of monthly snapshots of older Nepal data available on the Geofabrik download server - note that these are not history files, just old extracts. They expire after a while, so make a copy for the 1st April file while you can...

** Update : Geofabrik now has history file download option, so you can go to the download section of geofabrik and download the full history file.

permanent link

answered 05 Aug '15, 10:27

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 12 Dec '17, 05:07

Nirab%20Pudasaini's gravatar image

Nirab Pudasaini
55621514

The guy behind osm-history-splitter made this great tutorial on how to set up the splitter on an Ubuntu machine. The toolkit has a nice visualization tool too, making it easy to make animated maps like these. You can also extract shapefiles from a certain timestamp easily too, see an example here.

If you're used to a Windows environment, setting up a virtual Ubuntu machine is relatively painless with virtual box. If youy can explain me how to do this, I can give you a copy of my virtual machine, all set up (and messy). I might be able to give you access to an online machine already set up (command line interface only).

Or if you can limit the amount of things you need, I might be able to do it for you. Just cutting Nepal from the full history dump might save you some time if you don't have a strong machine. But you'd still need all the same tools to be able to process the osh.pbf file that comes out of it.

Edit: spelling

permanent link

answered 06 Aug '15, 10:37

joost%20schouppe's gravatar image

joost schouppe
3.4k245087
accept rate: 12%

edited 06 Aug '15, 12:39

To further simplify things, the datadump has an osm.pbf file extension, but to use it with Osmium (and related tools like the splitter) you have to rename it to osh.pbf (see https://github.com/joto/osmium/issues/95 )

(06 Aug '15, 10:42) joost schouppe

I am looking into the thematic accuracy of OSM data within a 100x100cm radius of Odessa, Ukraine. Literature suggests comparing who, when and what features have been edited in OSM will aid in identifying trends. Does the osm-history-splitter tool offer a GUI to examine and clip the area of study - rather than download the entire planet.osm data?

Any help or guidance is welcome.

permanent link

answered 10 Jun '16, 09:18

mikw's gravatar image

mikw
1
accept rate: 0%

1

There's a hosted extract for Europe which you could use ( http://osm.personalwerk.de/full-history-extracts/latest/continents/ ) , however it dates from january 2015. It's a mere 23 giga :) If you need something more recent, I don't know of anything else than the planet extracts you'll find here: http://wiki.openstreetmap.org/wiki/Planet.osm/full

Just make sure you use PBF as that's what the splitter needs.

The splitter is command line, however it only needs a single line of code to make an extract for a bounding box.

With the importer, you can than load it into a Postgres database. It only takes a single line of code to export a thematic extract to shapefile if you happen to be more used to that. Check my diary (e.g. http://www.openstreetmap.org/user/joost%20schouppe/diary/35530 , but many more posts on the subject) for some hints and feel free to send me a PM.

(10 Jun '16, 09:31) joost schouppe

Thank you for your help. I am having some difficulty installing the software on my VM (I am using Ubuntu) with Git. It does not allow me to create preform the 'Make' function in the following code:

git clone https://github.com/scrosby/OSM-binary.git cd OSM-binary/src make sudo make install cd ../..

Does anybody have any suggestions?

(15 Jun '16, 07:25) mikw

Without knowing what went wrong when you tried it, there's little anyone can suggest, beyond doing a quick web search for whatever error appears (I'm guessing that you're missing some prerequisites, but have no idea exactly what).

In general, with things that need a bit of interaction, if you go to #osm or #osm-dev on IRC (see http://wiki.openstreetmap.org/wiki/IRC ) there will be lots of people who've done exactly that before and will be able to help.

(15 Jun '16, 10:25) SomeoneElse ♦

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:

×710
×230
×89
×83
×10

question asked: 05 Aug '15, 08:21

question was seen: 6,013 times

last updated: 12 Dec '17, 05:07

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum