Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How can i do that ? On Linux or Windows ? The more simplest variant, if it exists.

.osm.pbf it`s the extension for Openstreetmap extract that i get from a site that takes dayly extracts from osm:

share|improve this question

3 Answers 3

the openstreetmap plugin (current version 0.5) only reads osm-files , but there is a commandline-convert (both for linux as well as for windows. I only tried windows), which can convert *.pbf to *.osm. these converted osm can be importet into qgis via openstreetmapplugin

url for converter:

share|improve this answer

You can also get the shapefile versions of the extracts. That way you won't have to convert anything. enter image description here

share|improve this answer
Please consider that the provided shapefiles only have a subset of the whole OSM data of the area. If you are interested in very special data, you have to fill the complete OSM data into a PostgreSQL database. – AndreJ Nov 2 '12 at 5:49

QGIS is now able to read .pbf files with Add vector layer, but the data size will most probably kill QGIS with most of the available files.

Try ogr2ogr -f SQLite my.sqlite some.pbf in the OSGEO4W shell to convert the pbf into a spatialite database, and connect to that in QGIS.

share|improve this answer
This is the way I do it. The ogr configuration file osmconf.ini can be edited to select or deselect the OSM keys that will be reported as fields in the database. – nhopton Dec 3 '14 at 9:11
What can i do if i get this errors, during the conversion C:\Users\florinb\Downloads>ogr2ogr -f SQlite canada.sqlite canada-latest.osm.p Warning 1: organizePolygons() received an unexpected geometry. Either a polygon with interior rings, or a polygon with less than 4 points, or a non-Polygon geometry. Return arguments as a collection. Warning 1: organizePolygons() received an unexpected geometry. When i try to open the file in Qgis, i get a generic erro r message "Unexpected error when working with: C:/Users/florinb/Downloads/canada.sqlite " – Badita Florin Jun 4 at 6:50
@BaditaFlorin I think this is worth a new question. – AndreJ Jun 4 at 14:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.