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
5
votes
1 answer

extract data from an .osm.pbf file within python

I've downloaded the great britain .osm.pbf file from http://download.geofabrik.de/europe.html and I want to be able to pull out all the lat and lons of every node. is this possible? If i could get it into python format of some sort that would be…
DRobins
  • 61
  • 1
  • 3
5
votes
1 answer

Is there an efficient way to create a mechanism for automatic updating osrm map data in kubernetes?

We have created .yaml file to deploy osrm/osrm-backend (https://hub.docker.com/r/osrm/osrm-backend/tags) in a Kubernetes cluster. We initially download the pbf file in the node's volume, then we create the necessary files for the service and finally…
Antonis S
  • 733
  • 6
  • 15
5
votes
1 answer

How to convert mbtiles to .osm.pbf

I'm writing a Qt application that is supposed to show a geo-map of a specific geographical region in one of its views on top of which I need to be able to draw various other graphical elements. The requirements are that all the map-tiles must be…
G-L
  • 53
  • 1
  • 5
5
votes
4 answers

Processing (OSM) PBF files in Spark

OSM data is available in PBF format. There are specialised libraries (such as https://github.com/plasmap/geow for parsing this data). I want to store this data on S3 and parse the data into an RDD as part of an EMR job. What is a straightforward way…
Synesso
  • 37,610
  • 35
  • 136
  • 207
5
votes
2 answers

How can I parse *.vector.pbf about Mapbox vector tile map?

*.pbf("Protocolbuffer Binary Format") is primarily intended as an alternative to the XML format. There are two formats of *.osm.pbf and *.vector.pbf. What tools can I use to open these files? (I know JOSM can open *.osm.pbf files, but it can't open…
kevin4z
  • 349
  • 4
  • 12
4
votes
1 answer

Leaflet display .mbTiles files in the map

I have downloaded UAE mbtiles from openmaptiles site. I need to show the map in offline for UAE. I'm using angular 4. I have converted that mbtiles into png image using mbutil. But it shows the image was damaged. Also converted to pbf and tried. it…
Jegan
  • 530
  • 7
  • 27
3
votes
4 answers

Is there a way to generate a .mbtiles file from .osm.pbf file

I have an .osm.pbf file which I want to use to generate vector tiles with (.mbtiles). Im currently on a windows machine utilising docker, I have tried to use the tool tilemaker (https://github.com/systemed/tilemaker) though I cannot get it to work…
MacaScull
  • 161
  • 1
  • 10
3
votes
1 answer

Openlayers 6 offline local vector pbf files "Unimplemented type: 6" error

I'm trying to convert OpenStreetMap data (osm.pbf file) to "z/x/y.pbf" folder/file structure and show the map offline using Openlayers 6 and Ionic. What I did so far is: Downloaded osm.pbf file…
Exerlol
  • 241
  • 3
  • 14
3
votes
1 answer

Read openstreetmap PBF file with PHP?

I downloaded a mbtiles file from this location: https://openmaptiles.com/downloads/europe/netherlands/ I can serve this file in PHP with this library : https://github.com/klokantech/tileserver-php This returns a compressed PBF, which Mapbox GL JS…
Dylan
  • 9,129
  • 20
  • 96
  • 153
2
votes
0 answers

Can I get 'way' information via OverpassAPI in offline

I know the following code works well to get the 'way' information via OverpassAPI(or overpy) library. from OSMPythonTools.overpass import Overpass overpass = Overpass() query = "way[highway](around:3,35.356309, 139.598544);(._;>;);out;" result =…
2
votes
1 answer

leaflet tiles with protomaps pmtiles are not visibles (seems to be transparent)

i'm using our own pmtiles tileset server, the test url is : https://tilesets.urbanease.io/cadastre/64/64102/without_protobuf.pmtiles the location for seeing it is :bayonne, france latlng=[43.492949,-1.474841] on the viewer, all seems to be ok bit…
2
votes
0 answers

Cross-Origin Read Blocking when trying to run a local tileserver map displayed using react-leaflet

I cannot get react-leaflet to display a map from a local maptiler server. I can however get the following simple leaflet code displaying the maptiler map: var mymap = L.map('mapid').setView([47.3769, 8.5417],…
Frikster
  • 2,755
  • 5
  • 37
  • 71
2
votes
1 answer

Offline map without a tile server

Tell me, please, I need to create an application that without the Internet will load an (offline) map of some area and it will be possible to indicate the path on it with points (points will be anchored to latitude and longitude coordinates). Tile…
Thr0TT1e
  • 35
  • 4
2
votes
0 answers

Open OSM pbf results in Protobuf exception

Using OSMSharp I am having trouble to open a stream for a file (which I can provide on demand) The error occurs in PBFReader (line 104) using (var tmp = new LimitedStream(_stream, length)) { header = _runtimeTypeModel.Deserialize(tmp, null,…
Youp Bernoulli
  • 5,303
  • 5
  • 39
  • 59
2
votes
1 answer

OpenStreetMap osm.pbf file, number of paths in federal states compared to the number of paths in a country

I would like to develop a small geocoder using OpenStreetMap. Now I downloaded the file germany-latest.osm.pbf and converted it with the tool pbf2json into a JSON stream. With this tool it is now possible to "pick" only JSON's with the planet type…
RHauck
  • 271
  • 3
  • 8
1
2 3 4