I'm looking for some guidance on the best way to filter the Europe-latest.osm.pbf file which I've downloaded from Geofabrik. I want to reduce the file to keep all of the 'main' roads; i.e. keeping those tagged:
I want to keep the related data; so keep all nodes and ways for these roads. I'm looking at osmosis and osmfilter and can run some tests, but I thought it worth asking for some guidance here to help focus my efforts. What is the best approach to filtering such a large set of data? I wonder if I need to concern myself with the machine's available memory? (I'm assuming so) How much might I need and how long might it take? Thanks for any guidance. asked 26 Feb '15, 16:31 Barryn |
I recommend osmfilter over osmosis for doing such a task. Assuming that you have read documentation about osmfilter and osmconvert in the OSM wiki, I would start do test filtering strategies on a smaller country extract, like Luxembourg or similar. When you are ok with the filtering parameters and the result file, just start that processing with europe-latest.pbf Maybe it is godg to have the windows taskmanager or similar program in Linux in the background, to see whether your PC is still working. And check free HD space before. answered 26 Feb '15, 20:01 stephan75 |
Osmosis can do the job with the If want to do this in a memory effecient manner, you'd have to write your own programme, e.g. using the Osmium library answered 27 Feb '15, 09:09 rorym |