osm.pbf is an initialism for Open Street Map Protocolbuffer Binary Format and is primarily intended as an alternative to the OSM XML format.
Questions tagged [osm.pbf]
60 questions
0
votes
2 answers
How to read this specific pbf file
I couldn't read this kind of pbf file :
https://docs.mapbox.com/vector-tiles/specification/
with some of tutorials available in internet ,
any help ?
Thanks

Amir.S
- 719
- 8
- 15
0
votes
1 answer
How to download Mapbox PBF file using Java?
I would like to download and parse a Mapbox PBF file from the web using Java. If I download the file manually, I am able to parse it without any errors. However, if I use Java code to download the file, and then try to parse the downloaded file, I…

Fitz
- 85
- 1
- 6
0
votes
1 answer
How to run osm2pgsql on multiple files using pexpect? Stuck on "Using PBF parser."
I am attempting to create a single SQL table from multiple .pbf files.
I am using osm2pgsql to load the file into a remote database, and am attempting to automate the process using python and pexpect.
While the first osm2pgsql command runs…

Sasha Trubetskoy
- 3
- 4
0
votes
2 answers
How can I create PBF file from GeoJSON file using NodeJS?
I have a Geojson file which name is countries.geojson.
I can read this file with get method. I want to create PBF files from this GeoJSON file. How can I do that?
var express = require("express");
const fs = require('fs');
var Pbf =…

buğra coşkun
- 63
- 11
0
votes
1 answer
Converting Shp file to .osm.pbf file
I am trying to convert a GIS LINE shapefile into a .osm.pbf file.
I've done some research on the topic and some tools that kept coming out are:
Merkaator
shp2osm - which deals mostly with point shapefile
shape2osm.py - which keeps bringing up an…

Renaldo Moon
- 165
- 3
- 14
0
votes
1 answer
mapbox files pbf blocked IIS server
PBF (street map mapbox vector files) files are not allowed to be served /downloaded from IIS (2008 R8) and I need them to be.
The background
PBFs are served OK when using the react development server
//Startup.cs
if (env.IsDevelopment())
{
…

user3428422
- 4,300
- 12
- 55
- 119
0
votes
0 answers
reverse geocode using osm2pgsql
Hello I have followed this tutorial
https://www.compose.com/articles/geofile-using-openstreetmap-data-in-compose-postgresql-2/
and Implemented database correctly.
I am looking for a query in which I give lat and long and it gives me the full…

user1hjgjhgjhggjhg
- 1,237
- 4
- 15
- 34
0
votes
1 answer
Open Street Map - Itinero C# - Road Restrictions
I'm using Itinero in C#
I want to restrict in my route.
For Example;
There are 3 bridges between two points.
Name of the first bridge X
Name of the second bridge Y
Name of the third bridge Z
If I have a bigTruck, I want to go to X Bridge.
Else if…

BURAK MERCAN
- 1
- 1
0
votes
0 answers
how to convert custom data to osm.pbf
I have a spatial db with links,nodes,traffic restriction etc..
I want to convert those spatial data to osm.pbf ,I know some osm.pbf
from https://wiki.openstreetmap.org/wiki/PBF_Format
structrue,like Node ,Way,Relation.
message Node {
required…

john strong
- 19
- 4
0
votes
2 answers
Identify crossroad nodes in openstreetmap data (.pbf)
does anybody know if there is a way I can seperate only the crossroad nodes which are included in a .pbf file? Is this clue (if a node is crossroad or not) included in this file's format?

Elizabeth K.
- 3
- 1
0
votes
0 answers
Python3 gdal/ogr open OpenStreetMap data file always returns None
I'm using Python 3 and gdal/ogr module to open/read .osm.pbf data files downloaded from OpenStreetMap. With the method presented in this thread, I could successfully parse open the file a week ago through the following code:
import gdal,…

mikeqfu
- 329
- 2
- 10
0
votes
2 answers
How to convert `mapbox.mapbox-terrain-v2` tiles to heightmap tiles?
Mapbox provides a kindle of map tiles--mapbox.mapbox-terrain-v2 which is stored in pbf format and saved in mvt suffix. The height data is represented by contour (line).
I want to generate terrain with satellite texture and this height data in…

oleotiger
- 105
- 2
- 11
0
votes
1 answer
Reading OBS PBF files using C#
I have downloaded a .osm.pbf file from https://download.geofabrik.de/europe.html and
need to convert the data (streets etc) to Graphs so I can calculate routes. I believe these files already work with Nodes, but have trouble reading the data.
I…

Dubb
- 423
- 1
- 7
- 21
0
votes
1 answer
Offline OSM files to run for OSMAnd Using OsmAndMapCreator
I am trying to create offline OSM files to run for OSMAnd using these instructions:
java -Djava.util.logging.config.file=logging.properties -Xms256M -Xmx2560M -cp "./OsmAndMapCreator.jar:./lib/OsmAnd-core.jar:./lib/*.jar"…

user914425
- 16,303
- 4
- 30
- 41
-1
votes
1 answer
Mapbox GL JS - possible to get the street name for a specific lng/lat?
I have a Mapbox GL JS implementation that gets its data from a vector mbtiles file that I downloaded from www.openmaptiles.com. I use tileserver.php with the mbtiles file to serve the PBF data, which Mapbox GL can use to display the map.
Is there…

Dylan
- 9,129
- 20
- 96
- 153