Re:OpenStreetMap PBF Perfomance Tricks
by occupy_paul_st on Tuesday August 06, 2019 @01:11PM
(#20627225)
Yeah, fair. I'm only working with Boston-area data so I can pretty easily load a Massachusetts OSM file from memory. However, memory would definitely be an issue for processing the entire world.
Are nodes in first fileblocks in "planet dumps"? And then fileblocks mostly with ways? With this dump configuration fileblocks are mostly useless.
Re:OpenStreetMap PBF Perfomance Tricks
by thomersch_ on Tuesday August 06, 2019 @04:51PM
(#20629497)
Blocks are useful, because you can distribute the workload onto several workers. Most encoders nowadays write first blocks with just nodes, then blocks with just ways and then just relations.
So unless you are doing meta-analysis of the raw OSM data, without assembling geometries, hand-rolling an OSMPBF reader is viable, otherwise I would suggest either using something pre-processed (extracts in real geodata formats), an established parser like osmium or rather import the data into e.g. postgres and do some querying there.