Questions tagged [pbf]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
45 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 ...
user avatar
0 votes
0 answers
18 views

Vector Tile Server location for Telstra mobile coverage as of 2022

Telstra is a telecommunications provider in Australia. Their coverage maps used to be accessible through http://staging.gcm.telstra.com.au, as discussed in the 2020 question Displaying Telstra Vector ...
user avatar
  • 618
1 vote
1 answer
39 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 ...
user avatar
  • 19
0 votes
1 answer
56 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 ...
user avatar
1 vote
0 answers
55 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(...
user avatar
  • 111
2 votes
0 answers
69 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-...
user avatar
  • 121
1 vote
1 answer
83 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 ...
user avatar
2 votes
0 answers
113 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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
1 vote
1 answer
217 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}....
user avatar
  • 71
1 vote
0 answers
112 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 ...
user avatar
  • 51
2 votes
1 answer
288 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 ...
user avatar
  • 305
2 votes
2 answers
475 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-...
user avatar
  • 2,494
2 votes
2 answers
707 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 ...
user avatar
  • 7,536
2 votes
1 answer
135 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 ...
user avatar
  • 6,698
0 votes
0 answers
270 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 ...
user avatar
  • 5,777
1 vote
0 answers
140 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 ...
user avatar
  • 111
1 vote
1 answer
30 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 ...
user avatar
  • 165
1 vote
1 answer
367 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 ...
user avatar
1 vote
1 answer
247 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 --...
user avatar
1 vote
1 answer
108 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). ...
user avatar
  • 132
2 votes
1 answer
833 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 ...
user avatar
  • 132
2 votes
1 answer
228 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 ...
user avatar
3 votes
1 answer
356 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 ...
user avatar
2 votes
0 answers
1k 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}/{...
user avatar
  • 6,698
2 votes
0 answers
362 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: ...
user avatar
  • 6,698
-1 votes
1 answer
538 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 ...
user avatar
  • 8,082
3 votes
0 answers
1k 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 ...
user avatar
0 votes
0 answers
70 views

Standalone GeoWebCache drop some parts of features in tiles

I have a local GeoServer with standalone GeoWebCache to serve vector tiles in PBF file format. The layer displays country borders in the world but the problem is in different tiles some parts of ...
user avatar
0 votes
1 answer
295 views

Is there a way to obtain polyline of pbf file?

I need to find boundaries of pbf file. Ideally - polyline, if this not possible - can be simple(min,max lat,lon rectangle). I download pbf from geofabrik(http://download.geofabrik.de/russia/...
user avatar
1 vote
0 answers
149 views

How to include a Mapbox Studio Tileset in Leaflet?

I would like to include in my Leaflet map a vector tile set that I uploaded to Mapbox Studio. I first uploaded a tileset to the tiles page of Mapbox studio. Then I created a new style and added my ...
user avatar
  • 373
1 vote
1 answer
603 views

Create columns for specific "other tags" of OSM PBF files in QGIS

When downloading PBF files of Openstreetmap via Geofabrik, the file contains a field called "other_tags" which includes all the OSM tags for this feature. It is a String field and looks like "cycleway"...
user avatar
  • 24.7k
0 votes
1 answer
228 views

Strange coordinate after use tippecanoe and Mapbox/pbf

I am trying to make vector tile base on Mapbox pbf standard. First, convert data from EPSG4326 to EPSG3857 and export as .json. By using QGIS to export data and set CRS as EPSG3857. Second, use ...
user avatar
2 votes
1 answer
299 views

Cannot decode tile_data in mbtiles

I downloaded the sample mbtiles data from https://www.mapbox.com/help/data/trails.mbtiles In the metadata of this file I found that the format is pbf. But if I directly query the tile_data column ...
user avatar
  • 573
0 votes
1 answer
115 views

OpenStreetMap PBF file attributes

I have a large OpenStreetMap .pbf history file. How do I know if this file has a specific attribute such as a name or version number? Or, in general, the number of feature attributes in this file.
user avatar
  • 21
4 votes
1 answer
2k views

Converting .osm.pbf to .shp

The website http://download.geofabrik.de/north-america.html does not have shapefiles (shp.zip) for sizable states or countries. How do you convert the available osm.pbf to shp.zip? I have tried QGIS ...
user avatar
  • 755
2 votes
0 answers
682 views

How To Display ST_AsMVT tiles in Leaflet

I have a large polygon dataset in PostGIS I would like to display in Leaflet map. I understand st_asmvt() query will return mapbox vector tiles. I can successfully query the data in postgis but I ...
user avatar
2 votes
1 answer
420 views

Extract custom shape area from Openstreetmap pbf

I have a full-country data download of OSM from http://download.geofabrik.de/ . I want to extract OSM data for a target area that is thin and winding/irregular in shape. I could take the max-min lat-...
user avatar
  • 901
2 votes
0 answers
223 views

Osm2pgsql failed Cannot detect file format. Try using -r

I use Osm2pgsql 1.0 and this my action : sudo osm2pgsql --slim -c --cache 29000 --proj 3857 russia-latest.osm.pbf -H xxxx.local -d osm -U osm_user -W -P 5432 was failed after some time: ...
user avatar
2 votes
1 answer
207 views

Converting PBF to Shapefile with name:xx tags as a column in the attributes

I have a PBF file containing only rivers information (extracted using osmosis when waterway=river). A conversion of this PBF to SHP works fine with ogr2ogr when I am selecting fields like "osm_id" ...
user avatar
  • 21
7 votes
1 answer
3k views

.mbtiles file with PBF to .mbtiles with PNG or JPEG

I need this conversion to embed the mbtiles file in a mobile app. I know there are server based rendering solutions, but I just need to make this conversion once for a single file with OpenStreetMap ....
user avatar
  • 71
1 vote
0 answers
59 views

Adding points to osm file in QGIS [duplicate]

I have downloaded an osm file from Geofabrik download server and opened this .osm.pbf-file in QGIS. So there are 5 classes - lines, multiline strings, multipolygons, other_relations, and points. I ...
user avatar
1 vote
1 answer
116 views

What does independently decodable mean in the context of the OSM PBF Format?

The primitive blocks of the OSM PBF Format are stated to be independently decodable. What should be the extent of this property? For example, should all the nodes referenced by a way be stored in ...
user avatar
0 votes
0 answers
261 views

Error during load osm pbf file from QGIS

I was trying to print out Stamen map (Quickmap plugin) in very high quality. However, I was unable to do so, printed out results looks like chequer board or empty. So, I was following the ...
user avatar
  • 161
4 votes
1 answer
818 views

Reverse Engineering of Vector tiles and Tiles Security

I am using the following workflow to generate and visualize vector tiles. Store edited shapefile to PostGIS Create vector tiles using Tippecanoe from PostGIS data Serve vector tiles through ...
user avatar
  • 2,931
1 vote
1 answer
1k views

Openlayers displaying local pbf at wrong location

Need help for displaying of local pbf file, it does show tiles but at wrong location and when zoom-in the whole feature set split into 4 locations. First Openlayers v 4.6.5 is not displaying local ...
user avatar
  • 123
2 votes
1 answer
815 views

Can't display vector layer using L.vectorGrid.protobuf

I use mapbox/tippecanoe to create .pbf tiles. But when I try to display them using L.vectorGrid.protobuf nothing is rendered, although I see that proper .pbf files are requested and downloaded by ...
user avatar
  • 153
3 votes
1 answer
131 views

How to set tile image formats for many layers using the Geoserver REST api

I have over 400 layers in my Geoserver layer catalog. I would like to turn on the pbf tile image format option for all of them. see image below: Is there a way of accomplishing this using the ...
user avatar
  • 982
2 votes
0 answers
515 views

Save Mapbox-Vector-Tiles (PBF) on indexeddb and use them offline

I'm developing a PWA(Progressive web app) where I need to retrieve PBF files from a POSTGIS database, then save them on an offline layer, to work as a offline-first app, right now I'm using a ...
user avatar
1 vote
0 answers
175 views

Syntax using osmosos with bounding box

I am trying to extract a region from a .osm.pbf file I have and write the output as a .osm.pbf file. I'm not sure on the syntax however to achieve this result. I have continued from an example I found ...
user avatar