Hello, all, Extracting data from the latest europe geofabrik pbf is a lengthy process. I want to extract 2 kinds of data, i.e. speed camera's and some brand's fuel stations. So to avoid spending too much time in the process, I am looking for the correct way to do so using osmosis. Could someone help me out on this ? I would think my command line should look something like
but I get an error "org.openstreetmap.osmosis.core.OsmosisRuntimeException: No default pipes are available as input for task 3-tee." In short, I don't arrive at the point of understanding the correct usage of the pipes and of the --tee argument. Could someone please explain, because despite the detailed osmosis 0.47 usage manual, I don't get at any better result than the one above. Thanks a lot in advance ! asked 19 Apr '22, 15:29 sudolea |
In general, if you can use answered 19 Apr '22, 15:47 Frederik Ramm ♦ Yes ! This works indeed. Thank you so much ! So my final command line reads :
Being unfamiliar with the osmium utility you suggest, and not immediately seeing the parallel osmium command I'd need to compare speeds, could I ask you how my osmosis command would (more or less) read in osmium ? In the meantime, my "mental picture", with regard to osmosis' tee argument, is : whenever there is any write option, the next argument is the start of tee's next pipe I don't think I'm far off, am I ?
(19 Apr '22, 16:52)
sudolea
1
Your logic regarding osmosis is almost correct, replace "any write option" with "any option that consumes a stream and doesn't output one again". With osmium, you would probably require several runs since you cannot AND-combine expressions, but since only the first run would consume the large Europe file and every subsequent run would only work on a small intermediate file, that should still go quite fast. See https://docs.osmcode.org/osmium/latest/osmium-tags-filter.html
(19 Apr '22, 17:51)
Frederik Ramm ♦
|