How to load a map into QGIS: 3 ways (a ready GeoPackage is the fastest)
You opened QGIS and there's no map — just a grey canvas. "How to load a map into QGIS", "how to add a map in QGIS", "how to read PBF files in QGIS", "how to open a GPKG in QGIS" — it's all the same pain: get terrain data into the program so you can work with it. Below are three working ways, from fastest to most laborious, honestly with the downsides.
Way 1. A ready GeoPackage — the fastest
GeoPackage (.gpkg) is a single container file with all layers (roads, buildings, water, greenery, POI) already assembled and cleaned. QGIS opens it natively, with no plugins and no pre-processing.
- Select the area you need and download it straight to GeoPackage — OpenStreetMap roads, buildings, water and points go into one
.gpkg. - In QGIS: Layer → Add Layer → Add Vector Layer → select the
.gpkg(or just drag the file into the layers panel). - QGIS shows the list of layers inside the container — tick the ones you need and click "Add".
That's it. Polygons are already assembled into closed rings, attributes are in place, nothing to fix. That's the key difference from "raw" OSM: you don't rebuild buildings from lines by hand. If you need something lighter for web GIS — the same export to GeoJSON.
More about the container is in the GeoPackage deep dive and the complete guide.
Way 2. The QuickOSM plugin
QuickOSM is a QGIS plugin that pulls data directly from OpenStreetMap via the Overpass API by your query.
- Plugins → Manage and Install Plugins → find QuickOSM → Install.
- Open QuickOSM, set a key/value (e.g.
building=yes) and an area (current canvas extent or a place name). - Click "Run" — the layer appears on the map.
The downsides, honestly. QuickOSM pulls one object type per query — buildings, roads, POI have to be requested in separate runs. The Overpass API limits volume and time: a large area simply times out. Plus you get raw OSM tags, not a ready thematic layer structure.
Way 3. A PBF from Geofabrik
Geofabrik distributes OSM dumps of entire regions and countries as .osm.pbf. QGIS can open a PBF directly via the GDAL driver: Add Vector Layer → select the .osm.pbf.
The downsides, honestly. A country dump is gigabytes. QGIS will open it slowly, and you probably need a single city. You'll have to clip it to your area (osmium/ogr2ogr) before loading, otherwise the program chokes. What layers and tags the PBF reader picks up is controlled by an osmconf.ini file — a separate hassle. This way is good if you really need the whole region and are ready for pre-processing.
What to choose
- You need a city/district right now, no fuss — take a ready GeoPackage. Seconds instead of an hour.
- You need one object type and you're comfortable with Overpass — QuickOSM.
- You need a whole region and pre-processing doesn't scare you — a PBF from Geofabrik.
If after loading you don't see the polygon layer (a common multipolygon question) — the cause and fix are covered in QGIS doesn't show the multipolygons layer. General QGIS + OSM integration is in this guide.
In short
- Fastest — a ready GeoPackage: one file, layers assembled, opens natively.
- QuickOSM — one object type at a time, limited by Overpass.
- A PBF from Geofabrik — whole regions, but gigabytes and pre-processing.