[GIS] Creating Protocolbuffer Binary Format (PBF) file using QGIS

file formatsqgis

I have a set of geospatial data, lines (streets) in geojson and shp file format which which i want to convert to PBF (Protocolbuffer Binary Format).

I am presently working with QGIS.

Please does anyone have an idea of how i can go about this and what tool(s) can be used?

Best Answer

The GDAL OSM driver http://www.gdal.org/drv_osm.html which is used by QGIS is read-only.

So you are out of luck to create OSM files out of QGIS, either uncompressed or compressed to pbf format.

As an alternative, you can use the JOSM editor to load the GIS data using plugins, and export to an OSM file. Don't upload to the server on exiting!

PBF files can be created in a second step with osmconvert

Related Question