Questions tagged [osm.pbf]

osm.pbf is an initialism for Open Street Map Protocolbuffer Binary Format and is primarily intended as an alternative to the OSM XML format.

60 questions
2
votes
0 answers

Getting .atlas files to use with OSM Atlas

I am trying to use OSM's Atlas project in order to be able to "walk" around the planet's streets and maps as a graph, but I am having trouble using it. The documentation seems a little scarce. It seems that I need .atlas files, but I am not sure how…
frostblooded
  • 304
  • 1
  • 6
  • 15
2
votes
1 answer

Not able to dispay pbf(mapbox vector tile) using openlayers

i am trying to display my own created vector tiles(.pbf), they are not getting displayed with no error on console of inspect element. I am dispaying them by using a simple example html file at: here I just have changed the url to look for vector…
shivam_b
  • 21
  • 6
1
vote
0 answers

Package geobuf returning NoneType when trying to convert .pbf to json

I am downloading a .pbf file from the following…
gdogg371
  • 3,879
  • 14
  • 63
  • 107
1
vote
0 answers

Generating pbf file directly

Currently, I'm using python code to parse and edit a .osm file and generate a new .osm file, then I convert it to a .pbf file using osmium. The problem is that .osm files are enormous in size and I have a limited-size of HDD, I want to write the…
M.Dara
  • 71
  • 7
1
vote
0 answers

Using oe_get() from osmextract package to translate and read only selection of keys/tags from a pbf into a gpkg

Using the answer from a previous question (Structure Query for osmextract ), I want to use the R package osmextract to get a subset of keys/tags (e.g. shop=supermarket) for the whole Europe.osm.pbf from Geofabrik. I am wondering if it is possible to…
JiannisK
  • 9
  • 1
1
vote
0 answers

Reading a .pbf url

How can I read a .pbf file extension of a url into python? For example, here's the url: https://api.mapbox.com/fonts/v1/mapbox/Lato%20Regular,Arial%20Unicode%20MS%20Regular/8192-8447.pbf It contains location data from the nextdoor app. However, I…
Working dollar
  • 306
  • 2
  • 10
1
vote
1 answer

Python - esy-OSMfilter error when trying to work through the example - OSM_raw_data does not exist

I am getting the following error when trying to go through the esy-osm example: INFO:esy.osmfilter.pre_filter:OSM_raw_data does not exist I am using python 3.8 on Windows and the code I am using is below: import os, sys import configparser,…
JLH
  • 11
  • 1
1
vote
1 answer

How to create my own .pbf route to make a graph in open trip planner

I was trying to generate isochrones in specific routes, for this purpose I am using Open Trip Planner following the Marcus Young (Tutorial #1 Tutorial #2). At this moment I am in the GRAPH folder step trying to put the necessary files, I have the…
1
vote
1 answer

get city name by latitude and longitude from OSM data stored in Postgres

i know there are lot of similar question but after long time searchin none of them worked for me thats why i'm posting, I want to get city name with lat and lon from planet_osm_polygon table where are polygons stored including polygons of cities,…
Martian
  • 99
  • 1
  • 11
1
vote
0 answers

How to convert .pbf to .osm in browser?

I want to convert the data in pbf format obtained by ajax into osm format (xml) data in the browser. Try using the pbf library of mapbox, but it didn't work. I'm not sure if there is a problem with my usage. I tried to use the pbf library of mapbox,…
more than
  • 11
  • 3
1
vote
1 answer

How to use tag filtering in Atlas

New to the Atlas project (and also to Java), I am trying some things out. I am looking for the preferred way to combine the instructions given here and here to apply tag filtering on an Atlas. Would the below be a good approach or is there a better…
Socci
  • 337
  • 2
  • 12
1
vote
1 answer

Impossible to merge osm.pbf file properly

I've recently started to work on a project with SRTM datas and I've extracted pbf file using phyghtmap. To start I'm getting hgt files, converting them to tif using the following command : gdal_fillnodata.py data.hgt data.tif Then I'm warping them…
Lucas Miller
  • 123
  • 1
  • 6
1
vote
0 answers

Offline map with WPF application

I'm developing an app for windows using WPF project. In this app I want an offline map of all the France. I have downloaded the osm.pbf file of my country but I don't know how to display it in my app. I have done some search, I'm supposed to…
Sagon nicolas
  • 198
  • 3
  • 23
0
votes
0 answers

Auto-generate .pxd file with pyrobuf for faster calls in cython function

Context I would like to speedup a cython function where I read an osm.pbf file via pyrosm. In this library, the file is read via pyrobuf prototypes: pyrobuf generates a .c file with the relevant classes and their ParseFromString functions. However,…
Silmathoron
  • 1,781
  • 1
  • 15
  • 32
0
votes
2 answers

pyrosm/geopandas error when calling get_network(network_type='driving')

I'm trying to get the street network from a pbf-file. The very weird is: my script did work initially, so I did transform the exact same pbf data files. But suddenly my script doesnt't work anymore. So when I run this code snippet on a pbf-file…
i.i.k.
  • 135
  • 5