Skip to main content

Questions tagged [pbf]

PBF Format ("Protocolbuffer Binary Format") is primarily intended as an alternative to the XML format.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

VTPK to PBF issue, where some tiles are incomplete

I am having this issue where I have a street premium license, and I am currently developing a web application. My issue is that when I use the ArcGIS tool to convert the vtpk that is in the mmpk ...
mikeT's user avatar
  • 1
0 votes
1 answer
39 views

R osm_extract package not handling railway tag properly

I am working with files from OpenStreetMaps obtained from GeoFabrik in the .osm.pbf format. My goal is to use the osmextract package from R to filter the files to only include certain tags. The ...
Esra's user avatar
  • 3
1 vote
1 answer
203 views

Extract features in lat-long co-ordinates from vector tile layer PBF file, Python

I'm trying to extract features using python from a vector tile layer's single .pbf tile : https://indianopenmaps.fly.dev/google-buildings/{z}/{x}/{y}.pbf This tile layer comes from : https://github....
Nikhil VJ's user avatar
  • 1,026
2 votes
0 answers
336 views

React Native with offline maps

I am developing a React Native app functionality that will allow user to navigate with offline map. I had luck with react-native-maps package and raster .jpg tiles. The main downside is that tiles for ...
Andrei Shingirii's user avatar
1 vote
0 answers
100 views

Extracting Latitude and Longitude Coordinates from PBF Files

I aim to retrieve and handle PBF files sourced from an online map. The provided link exemplifies a PBF file: https://tiles.raah.ir/tiles/low/16/42122/25807.pbf Upon loading this file into QGIS, the ...
Vahid's user avatar
  • 11
0 votes
1 answer
173 views

ogr2ogr skipping rows when converting from osm.pbf to gpkg

I am downloading an osm.pbf file from the Geofabrik download server and running the following command: ogr2ogr -f GPKG norcal-latest-multipolygons.gpkg norcal-latest.osm.pbf -sql "SELECT * FROM ...
user233253's user avatar
1 vote
1 answer
239 views

"Bad allocation" error when importing a large PBF file (OpenStreetMap) on PostgreSQL with osm2pgsql

I downloaded the 72 GB OpenStreetMap PBF file (planet-230619.osm.pbf) at this link https://planet.osm-hr.org/pbf/ and I am trying to import it into PostgreSQL + PostGIS with the library osm2pgsql ...
Koba's user avatar
  • 159
2 votes
1 answer
280 views

Convert downloaded mvt/pbf to new mbtiles file

I'm trying to do the following: Determine what pbf files are needed for a certain user-defined bbox (DONE) Download these files for all zoomlevels. (DONE) Combine these pbf files into a new mbtiles ...
TomGeoTom's user avatar
0 votes
2 answers
378 views

ogr2ogr cannot open datasource ogrinfo can open

I've got a random .osm.pbf from Geofabrik which I'm trying to extract a small region of: $ ogr2ogr -f OSM -spat 7 48 8 49 data/osm/extract.osm.pbf data/osm/germany-latest.osm.pbf ERROR 1: OSM driver ...
TheEagle's user avatar
  • 115
0 votes
1 answer
221 views

How to create mbtiles from pbf which will be compatible with TileServer GL?

I am new to GIS and trying to figure everything out. Right now my goal is to understand how to create an mbtiles vector file that can be served with TileServer GL. I have downloaded the free 2020 ...
Alexei Andronov's user avatar
1 vote
1 answer
127 views

Selecting layer for processing

I am currently trying to export a map as PBF vector tiles (Google Protocol Buffers (protobuf) details: https://protobuf.dev/ ) but I can't find a way to select the current layer in the toolbox (about ...
myfoxit's user avatar
  • 11
0 votes
0 answers
433 views

Converting OSM or PBF file to shapefile

I'm trying to get some OpenStreetMap data into the ESRI ecosystem. I've been using geofabrik.de to download the data. I tried using QGIS to convert, but it must have a field or size limit, because it ...
aferguson22's user avatar
0 votes
1 answer
1k views

Exporting vector tiles or saving them locally using QGIS

I'm using QGIS 3.30 and have added a vector tile layer in the format https://privateurl.com/tiles/{z}/{x}/{y}.pbf. I would like to be able to export this at zoom level 14 to local files so I can do ...
RobShaw_UK's user avatar
1 vote
0 answers
836 views

Write GeoPandas data into osm.pbf file using Python

I have sample nodes, edges data like below. I am using ElementTree to write the data into .osm file and then trying to convert into .osm.pbf using osmosis but when trying to convert from .osm to .osm....
data en's user avatar
  • 145
1 vote
1 answer
734 views

ogr2ogr conversion from pbf to mapbox mvt

I have downloaded traffic data from TomTom API which has come in the format https://api.tomtom.com/traffic/map/4/tile/flow/relative0/12/1207/1539.pbf?tileSize=256&key=***** The PBF format is ...
guest_20230125's user avatar
1 vote
0 answers
219 views

Using GDAL to convert PBF to MVT for use in Mapbox

Is it possible to convert PBF file formats to MVT so that I can correctly view them on Mapbox using GDAL? originally looked at ogr2ogr but that returned this message which I don't quite understand ...
user2984610's user avatar
2 votes
0 answers
105 views

Open Trip Planner doesn't seem to be accounting for turn restrictions - editing local OSM pbfs for scenario planning

We've been attempting to use Open Trip Planner (1.5) to test the impact of various street-network scenarios that include new ways, traffic filtering and vehicle turning restrictions. We are manually ...
James DeWeese's user avatar
1 vote
0 answers
237 views

Compact pbf vector tiles back to bundles from exploded vtpk

There is a great method available in ArcGIS Pro (ArcPy) arcpy.management.ExtractPackage to extract vtpk package including exploding bundle files Esri uses to pack standard pbf vector tiles together ...
Miro's user avatar
  • 9,764
1 vote
0 answers
84 views

OSMOSIS syntax for extracting buildings out of country.pbf via .polyfile

I am new to osmosis and osmfilter did not work with my .poly file. I do not get the syntax working. I like to extract all buildings within a poly file. I tried just for all objects C:\Program Files (...
BAE_23's user avatar
  • 677
2 votes
1 answer
208 views

OGR_INTERLEAVED_READING error with gdal_rasterize

I've been trying to rasterize big PBF (1.2GB) file using gdal_rasterize and got this error: ERROR 1: Too many features have accumulated in lines layer. Use the OGR_INTERLEAVED_READING=YES ...
user208190's user avatar
0 votes
1 answer
133 views

Osm2pgsql data dump in specific schema not working

While using osm2pgsql 1.6 i am trying to dump PBF into specific schema of postgres DB using following commands using docker. (i am setting database properties in docker env) docker run -v /mnt/ne-...
deewreck's user avatar
0 votes
1 answer
191 views

Get coordinates of .pbf/.osm of ways and relations directly?

Is there a tool for pbf or osm files so that I can see the coordinates of ways and relations directly? Currently ways have only references to nodes. So if I want to have the coordinates of a way, I ...
KerryKilian's user avatar
2 votes
0 answers
315 views

How to configure Mapbox Vector Tiles (pbf files) cache in NGINX

I am using a Geoserver to serve Vector Tiles which are used by Mapbox JS Clients. To reduce the requests to the Geoserver I want to implement a caching functionality. As webserver I use a NGINX. I ...
Dark Foo's user avatar
3 votes
1 answer
1k views

Applying filter on local OSM PBF file

Because I sometimes need to work without an internet connection, I use OpenStreetMap data by downloading regional data from https://download.geofabrik.de/ as "Australia_latest.osm.pbf", then ...
Leigh Bettenay's user avatar
1 vote
1 answer
111 views

Finding the n farthest points from any man-made structure within a country

I am trying to find the farthest points from any man-made structure in Denmark. I have acquired an OpenStreetMap data extract of Denmark from this page, in PBF format. How do I compute a number of ...
hvad's user avatar
  • 19
0 votes
1 answer
452 views

Protecting Vector Tile Server Data

I am deploying a Vector Tile Server on AWS with data I don't want to make publicly available and there are two main elements I want to cover regarding the security of the data The tile server needs ...
arbermejo's user avatar
1 vote
0 answers
308 views

Sending vector tile PBF content as response from HTTP Azure function

I wrote Azure function (based on HTTP trigger) and need to return vector tile PBF as response. I used following piece of C# code to send response from Azure function return new FileContentResult(...
Rocky's user avatar
  • 111
2 votes
0 answers
266 views

osmosis --used-node keyword does not grab all relevant nodes

I am trying to filter an osm.pbf file using osmosis. The following is my filter: osmosis --read-pbf-fast metadata-unfiltered.osm.pbf workers=8 --tf accept-ways <placeholder> --tf reject-...
cmosig's user avatar
  • 143
3 votes
1 answer
288 views

Can use not existing level tiles with Leaflet with maxNativeZoom, but the lines are fuzzy

Recently I have deployed WMTS with GeoServer, using MVT (PBF) format tiles. I use Leaflet JS parsing PBF tiles. Layer displaying and interactions are normal. I have generated level 1-13 tiles ...
stevenma's user avatar
2 votes
0 answers
293 views

Exporting multiple shapefiles as vector tiles with PBF schema

I work in QGIS and I have to export 2000 shapefiles to vector-tiles with PBF schema. I have one shape with all the geometries in a single layer and I also export them independently within the same ...
Carlos. Perez's user avatar
0 votes
1 answer
469 views

Generating PBF files on request similar to renderd/mod_tile PNG tiles [closed]

I am trying to build my own fantasy map with history information. I am running the website fork of OSM from https://www.openhistoricalmap.org/. I got the site running but the default layer is ...
Juho Rutila's user avatar
2 votes
1 answer
988 views

Using ArcGIS Online PBF from FeatureServer in Leaflet

I'm looking for a way to use the PBF format from an ArcGIS Online FeatureServer in Leaflet. There are lots of examples using L.vectorGrid.protobuf with URLs for PBF tiles structured like {z}/{x}/{y}....
Kevin's user avatar
  • 121
1 vote
0 answers
262 views

Deploy OSM vector tiles in GeoServer

I'm playing around a bit with Mapbox Vector Tiles as part of my bachelor thesis and would like to deploy them via a local server. Setup (realized with DOCKER): PostGIS DB --> OSM data Geoserver ...
David's user avatar
  • 61
2 votes
1 answer
1k views

Converting PBF to GeoJSON using python3-gdal module

How can I use the module python3-gdal to convert .pbf into .geojson using Python? I've been exploring ogr in python3-gdal module but I can't figure out how to make it work. I do a request, the ...
Falcoa's user avatar
  • 335
3 votes
2 answers
1k views

Changing layer order of vector tile layer

I am creating a simple web map using vector tiles of type pbf. The vector tiles are created with tippecanoe like: tippecanoe -pC -P -z 19 -Z 15 -e builds --drop-densest-as-needed --extend-zooms-if-...
Riccardo's user avatar
  • 2,668
3 votes
2 answers
4k views

Loading PBF vector tile data in QGIS

Is it possible to load the services in https://staging.gcm.telstra.com.au/gisserver/rest/services/Hosted into QGIS. I have tried a Virtual Layer, Vector Tile and ArcGIS Map/Feature service with no ...
GeorgeC's user avatar
  • 8,238
2 votes
1 answer
665 views

Serving pbf tiles with nginx

I have a folder structure /foo/bar/baz/static/tiles/{z}/{x}/{y}.pbf containing many tiles according to a z/x/y file structure. With /foo/bar/baz/ containing an index.html and a style.json. I have this ...
swiss_knight's user avatar
  • 10.4k
0 votes
0 answers
728 views

Fetching GeoServer vector tiles in Mapbox GL is slow

I want to create a basemap with Mapbox GL and GeoServer and PostGIS (to store layers). I use GeoServer 2.18 and the latest version of Mapbox GL. There are about 20 layers in PostGIS. One layer is the ...
BBG_GIS's user avatar
  • 5,825
3 votes
0 answers
896 views

How to generate more pbf zoom levels with mbtiles file?

I have a 8GB canada.mbtiles vector file which contains all of Canada up to zoom level 14. How do I generate zoom 15,16 from this canada.mbtiles file? The goal is to serve smaller pbf on z15,16 for a ...
Reed's user avatar
  • 131
1 vote
1 answer
99 views

Control visibility of specific fields of a PBF file

I downloaded a PBF file from GeoFabrik (OpenstreetMap data) and loaded it into QGIS 3.14. It gives me each a layer for lines, multilinestrings, multipolygons, points and another one called "other ...
nichomeso's user avatar
  • 205
3 votes
1 answer
703 views

Filter (query) OSM .pbf file in QGIS graphical modeler or Python (QuickOSM or related tools)

I would like to automate a simple operation in the QGIS graphical modeler or a simple Python script. add all line features from a .pbf file filter all features with certain values within a certain ...
MsGISRocker's user avatar
2 votes
1 answer
680 views

CSV to Vector Tiles: Encoding polygons in Tippecanoe (or some other software)

I want to generate .pdf vector tiles from polygon features. From what I've found out, tippecanoe seems to be the way to go. Like so (found here): tippecanoe --no-feature-limit --no-tile-size-limit --...
Moehrengulasch's user avatar
1 vote
1 answer
212 views

Compute area coverage density estimate from very large polygon dataset

I am trying to come up with a pipeline for turning very large OSM PBF files (eg buildings layer for a whole country: ~100M polygons) into a more manageable density estimate (with arbitrary precision). ...
Dave's user avatar
  • 132
2 votes
1 answer
2k views

Fast way to extract bounding boxes from OSM PBF data…

Is there an efficient way to convert a set of node/relations in a PBF file, to the bounding boxes for each polygon, without going through a conversion to another GIS format? Right now, my pipeline ...
Dave's user avatar
  • 132
2 votes
1 answer
428 views

Union MVT features based on attribute / id in OpenLayers render

Following Paul Ramsey's article about ST_Subdivide I was able to split the Natural Earth boundaries dataset. Generating tiles which intersect the boundaries of Canada and Russia on the fly is now ...
Dennis Bauszus's user avatar
3 votes
1 answer
898 views

Displaying Telstra Vector Tile Server data in QGIS 3.14.16-Pi

I am running QGIS 3.14.16-Pi and am wanting to load the layers Telstra (Australian telephone company) provides on their GIS server. https://staging.gcm.telstra.com.au/gisserver/rest/services/Hosted/ I ...
John Lucas's user avatar
2 votes
0 answers
2k views

From osm.pbf data to mbtiles (pbf vector tiles inside a sqlite3 container)?

I need to experiment with vector tiles based on OSM data. To do that, I've downloaded an OSM *.osm.pbf data file from geofabrik.de. I want now to store these data either as the standard /tileset/{Z}/{...
swiss_knight's user avatar
  • 10.4k
2 votes
1 answer
1k views

Convert a mbtiles tileset folder into a single .mbtiles SQLite file?

I have a root tileset folder structured with the standard tiling scheme /tileset/{Z}/{X}/{Y}.pbf. When I try using GDAL, I think I miss something: $ ogr2ogr -f MVT sqlite.mbtiles ./tileset FAILURE: ...
swiss_knight's user avatar
  • 10.4k
1 vote
1 answer
1k views

Using .pbf Vector Tiles generated with t-rex with OpenLayers errors with "Uncaught Error: Unimplemented type: 7"

I generated .pbf vector tiles with t-rex's generate command. I then uploaded them to a directory served with the Apache HTTP server. Trying to use the tiles with OpenLayers (6.4.3) resulted in no ...
bugmenot123's user avatar
  • 10.9k
4 votes
0 answers
3k views

How can I extract street information from an osm.pbf file to Excel?

I'm working on a project where I have to get all the streets of the city where I live, including colony, suburb, postal code, but I am a little confused about what process do I have to follow. I have ...
Daniel ML's user avatar