imantha
imantha

Reputation: 3828

Reading .osm.pbf or converting .osm.pbf to .osm

I want to extract some information from a .osm.pbf file. I looked through OpenStreetMapX.jl package but didn't find a function to read this data. I am wondering if anyone know a method to read this data. Alternatively is there a way to convert .osm.pbf to .osm file so that I found just use the get_map_data() method offered by OpenStreetMapX package

Upvotes: 11

Views: 12142

Answers (2)

Zerta
Zerta

Reputation: 175

I would use osmium to do this:

osmium cat myFile.osm.pbf -o myFile.osm

Upvotes: 6

matthieun
matthieun

Reputation: 833

I would use Osmosis for that:

osmosis --read-pbf myFile.osm.pbf --write-xml myFile.osm

Upvotes: 18

Related Questions