8

I'm sure this has been asked thousands of times, but how do I view the map extracts offline? (.osm and .pbf) Is there a (native) app I can use? Can't find any clear information.

top 11 comments
sorted by: hot top controversial new old
[-] pietervdvn@lemmy.ml 2 points 1 week ago

What are you trying to do with it?

.pbf is a compression format (a bit like a .zip-file) which contains the .osm-file. The .osm-file is nothing more then an XML-file with a specific format and a .osm-extension.

Those are not meant for day-to-day users but more for developers.There are some programs able to open those files, such as JOSM or Osmosis.

[-] Irelephant@lemm.ee 1 points 1 week ago

To view it offline. There is probably a far better way I am missing.

[-] pietervdvn@lemmy.ml 1 points 1 week ago
[-] Irelephant@lemm.ee 1 points 1 week ago

They all seem to be phone apps. I tried using kde marble, but it doesn't work very well (for me)

[-] mdione@en.osm.town 2 points 1 week ago* (last edited 1 week ago)

@Irelephant at least .osm files can be loaded in #JOSM, but if your extract is big enough (say, a city or bigger), it might clog it, since it will try to render _everything_. It's mostly aimed at loading changesets, not whole areas.

After that, it seems like you can convert the pbf into a SQLite/Spatialite DB and load it in #QGis, but you're already transforming the data.

EDIT: yay! Federation works! (Answered from Mastodon :)

[-] pietervdvn@lemmy.ml 1 points 6 days ago

Yeah, the fediverse is amazing. I've had cases where I answered a lemmy thread without even realizing it was on lemmy ;)

[-] InsertUser@en.osm.town 1 points 5 days ago

@pietervdvn @mdione If you're replying to a reply it sometimes helps to add @openstreetmap to the toot to make sure it gets propagated properly by lemmy.

(although probably not this time as I'm replying to a lemmy.ml account)

[-] redd@discuss.tchncs.de 1 points 1 week ago

I asked ChatGPT and there seems to be two options to view OSM extracts:

  1. QGIS can open .osm and .pbf

  2. JOSM can open .osm

I did not verify or test this by myself. Maybe some people have more experience?

[-] mcliquid@en.osm.town 1 points 1 week ago

@redd @Irelephant And I guess the iD editor in osm.org can also open .OSM files but never tried.

[-] pietervdvn@lemmy.ml 1 points 1 week ago

An end user cannot open provided XML files with it

[-] mcliquid@en.osm.town 1 points 1 week ago

@redd @Irelephant Correct, both tools will work!

this post was submitted on 10 Feb 2025
8 points (100.0% liked)

OpenStreetMap community

4429 readers
2 users here now

Everything #OpenStreetMap related is welcome: software releases, showing of your work, questions about how to tag something, as long as it has to do with OpenStreetMap or OpenStreetMap-related software.

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

Join OpenStreetMap and start mapping: https://www.openstreetmap.org/.

There are many communication channels about OSM, many organized around a certain country or region. Discover them on https://openstreetmap.community/

https://mapcomplete.org/ is an easy-to-use website to view, edit and add points (such as shops, restaurants and others)

https://learnosm.org/en/ has a lot of information for beginners too.

founded 5 years ago
MODERATORS