OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2018-12-03 19:36:38

New Member
Registered: 2018-12-03
Posts: 1

Java: pbf Stream instead of Reader

I'm currently using my own implementation of


in combination with


to extract the nodes I want from the latest planet.osm.pbf file.

My application is not time-critical, but as the OsmosisReader reads & processes the file completely first, before invoking the process method on each node, I think my pc will run out of RAM once I switch from one of the smaller files to the actual planet map.

You can inspect my project on GitHub @ …

Is it possible to use some kind of Pbf Stream instead of the OsmosisReader with which I can process every tag parallely to the decompression of the file?

Thank you in advance :)

Last edited by Lenni10 (2018-12-03 19:59:31)


#2 2018-12-05 18:43:06

Registered: 2015-12-18
Posts: 545

Re: Java: pbf Stream instead of Reader

You may have a look at splitter or mkgmap (1) or the pbf plugin for JOSM. They all use osm-pbf.jar



Board footer

Powered by FluxBB