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
0answers
24 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-...
1
vote
1answer
53 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 ...
1
vote
0answers
58 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 ...
0
votes
1answer
12 views

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

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 ...
1
vote
0answers
109 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}....
1
vote
0answers
58 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 ...
2
votes
1answer
119 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 ...
2
votes
2answers
282 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-...
0
votes
0answers
33 views

How to get the Lat/Lon of a <way> from a PBF file?

I'm working with a PBF file and I'm interested in getting each <way> tag alongside the coordinates of each subnode of the way. Here's what information I'm working with and how I'd like to ...
2
votes
2answers
325 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 ...
2
votes
1answer
82 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 ...
0
votes
0answers
164 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 ...
1
vote
0answers
64 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 ...
1
vote
1answer
19 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 ...
1
vote
1answer
216 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 ...
1
vote
1answer
169 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 --...
1
vote
1answer
70 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). ...
2
votes
1answer
581 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 ...
2
votes
1answer
170 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 ...
3
votes
1answer
252 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 ...
2
votes
0answers
788 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}/{...
2
votes
0answers
265 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: ...
-1
votes
1answer
386 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 ...
3
votes
0answers
966 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 ...
0
votes
0answers
62 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 ...
0
votes
1answer
186 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/...
1
vote
0answers
104 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 ...
1
vote
1answer
435 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"...
0
votes
1answer
188 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 ...
2
votes
1answer
223 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 ...
0
votes
1answer
82 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.
4
votes
1answer
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 ...
2
votes
0answers
612 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 ...
2
votes
1answer
281 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-...
2
votes
0answers
203 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: ...
2
votes
1answer
137 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" ...
6
votes
1answer
2k 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 ....
1
vote
0answers
54 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 ...
1
vote
1answer
99 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 ...
0
votes
0answers
212 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 ...
4
votes
1answer
748 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 ...
1
vote
1answer
984 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 ...
2
votes
1answer
756 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 ...
3
votes
1answer
106 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 ...
3
votes
0answers
450 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 ...
1
vote
0answers
142 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 ...
2
votes
0answers
52 views

OSRM-extract Sorting edges by start seems to stop

I try to use planet-latest.osm.pbf (2018-05-23) from https://planet.openstreetmap.org/pbf/. I extract the pbf file on Ubuntu 16.04 and everything seems OK until Sorting edges by start ... On ...
0
votes
1answer
101 views

Total entries in .pbf

I'm trying to convert osm.pbf to .shp for some analysis in QGIS. I need to verify id the converted .shp is the same as .pbf. But the attributes table shows only 99 records by default. How do i find ...
2
votes
0answers
713 views

Convert .osm.pbf file to a raster (tif, asc or rst)

I downloaded the .osb.pbf file for my country, and I want to import it into Graphab. To import it, I need to have a raster file as the documentation file mentions: The second window is for ...
3
votes
1answer
303 views

What is the faster way to run an OSM (xml) data to Esri geodatabase data for a big area with FME?

I am working on OSM highway(polyline) data with respect to the keys Max_speed and surface for the whole Africa. In this case I took at first the Geometry Filter with line and I used 2 list_searchers ...