59 questions
0
votes
0
answers
13
views
Problem using pyrosm get_data for subregions of Great Britain
For years my code to extract pbf files from Geofabrik using pyrosm for subregions in great-britain has worked. But on 30th October 2024, it suddenly stopped working. It works for cities,
but not ...
0
votes
1
answer
59
views
GDAL ogr2ogr is taking too long while importing OSM data to PostGIS
I’m trying to import the entire planet OSM (OpenStreetMap) data into a PostGIS database using GDAL and ogr2ogr. However, this process has been running for 6 days, and it’s still not finished.
Here’s ...
0
votes
0
answers
36
views
Need Assistance with Reducing PBF File Size in Tippecanoe
I am using the following command to generate MVT vector tiles using tippecanoe, but the output PBF files are too large (4+ MB each). My goal is to display all the geo data starting from the minimum ...
0
votes
0
answers
55
views
How to work with pbf files in php/laravel?
I am working on an interface for creating a static map in php/laravel which gets generated by putting together map tiles around a point. Right now I am trying to use azuremaps vector tileset which ...
0
votes
0
answers
69
views
Distorted PBF Vector Tiles in OpenLayers
I have a local set of PBF files that render parks and roads in a geographic area. The parks display correctly, but the roads are completely distorted at all zoom levels - what could be causing this ...
0
votes
0
answers
145
views
How to use Osmosis library to obtain images from PBF
I'm developing an Android application where I need to display geographical maps. I know there are alternatives, but the way I need to do it is to provide the client with the ability to receive PBF ...
0
votes
1
answer
343
views
Display a vector tile layer in Openlayers with layer from arcgis REST map server
I work with a quite big feature layer that is hosted in a arcgis map server. Because of its size, loading it in Openlayers as a VectorLayer is too slow (there is about 50mb of data to load, which can ...
0
votes
2
answers
398
views
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.
...
0
votes
1
answer
278
views
How to 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....
1
vote
0
answers
196
views
Package geobuf returning NoneType when trying to convert .pbf to json
I am downloading a .pbf file from the following location:
https://api.mapbox.com/v4/tableau-enterprise.ctcaz7rr/4/7/5.vector.pbf?sku=101NmEGuqERal&access_token=pk....
1
vote
0
answers
370
views
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 ...
1
vote
1
answer
222
views
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 ...
0
votes
0
answers
317
views
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](...
3
votes
1
answer
787
views
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....
0
votes
1
answer
1k
views
How can I download historical file from OpenStreetMap?
I need the .pbf file for one country but from last year. Is there any possibility to find it on the OSM ?
0
votes
1
answer
217
views
Feed formats other than pbf to Osmosis
I've written code in Java using the Osmosis framework and specifically OsmosisReader for Java, for OSM processing.
As far as I understand, OsmosisReader can only work with *.pbf files, which means I ...
0
votes
1
answer
355
views
Error using Openlayer vectortile custom renderfunction for vectortiles
Error using Openlayer vectortile custom renderfunction vector tiles
Openlayer layers allow to set a custom render function, as mentioned in https://openlayers.org/en/latest/apidoc/module-...
0
votes
1
answer
163
views
How to convert nominatim file to osm file pbf?
I have a backup file from postgresql of nominatim. Now I want to convert that backup file into OSM's PBF file, is it possible? If yes give me some suggestions on the conversion . Thanks a lot
0
votes
0
answers
150
views
Which type of map content only road in offline mode and manage that with python?
I used osm and osm.pbf, but I have some problems whit those.
I manage These types, with pyrosm library and got the driving network, but output of this, is very static.
In addition the roads don't have ...
2
votes
0
answers
1k
views
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, ...
0
votes
1
answer
902
views
Extract addresses zip street city form openstreetmap pbf files
to build up a database of German cities where ic can query cities around a cup with a defined distance, i want wo export from pbf files the address data into a mysql database. I already found a good ...
5
votes
1
answer
12k
views
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 ...
0
votes
1
answer
270
views
Postgres data to osm-pbf creation failed using osmosis snapshot schema
I have imported pbf to postgres using osmosis snapshot schema
now wanted to create pbf from that schema, using following command
osmosis --read-pgsql host=localhost database=osmosisv1 user=postgres ...
0
votes
1
answer
2k
views
Converting .pbf file to .osm using pyosmium
I have downloaded a rather large file from geofabrik.de and it is in the form of a pbf. I need to convert it into an osm file so I can extract the nodes and edges from the file. I have downloaded the ...
5
votes
6
answers
17k
views
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/...
3
votes
1
answer
2k
views
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 ...
5
votes
1
answer
1k
views
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 ...
1
vote
1
answer
213
views
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 ...
0
votes
2
answers
2k
views
How to read this specific pbf file
I couldn't read this kind of pbf file :
https://docs.mapbox.com/vector-tiles/specification/
with some of tutorials available in internet ,
any help ?
Thanks
3
votes
1
answer
3k
views
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 (...
0
votes
1
answer
759
views
How to download Mapbox PBF file using Java?
I would like to download and parse a Mapbox PBF file from the web using Java. If I download the file manually, I am able to parse it without any errors. However, if I use Java code to download the ...
0
votes
1
answer
240
views
How to run osm2pgsql on multiple files using pexpect? Stuck on "Using PBF parser."
I am attempting to create a single SQL table from multiple .pbf files.
I am using osm2pgsql to load the file into a remote database, and am attempting to automate the process using python and pexpect....
1
vote
1
answer
740
views
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 ...
0
votes
2
answers
2k
views
How can I create PBF file from GeoJSON file using NodeJS?
I have a Geojson file which name is countries.geojson.
I can read this file with get method. I want to create PBF files from this GeoJSON file. How can I do that?
var express = require("express");
...
1
vote
1
answer
2k
views
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 ...
3
votes
0
answers
535
views
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))
{
...
2
votes
1
answer
445
views
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 ...
2
votes
0
answers
914
views
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 ...
2
votes
0
answers
346
views
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 ...
0
votes
1
answer
2k
views
Converting Shp file to .osm.pbf file
I am trying to convert a GIS LINE shapefile into a .osm.pbf file.
I've done some research on the topic and some tools that kept coming out are:
Merkaator
shp2osm - which deals mostly with point ...
1
vote
1
answer
170
views
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 ...
0
votes
1
answer
695
views
mapbox files pbf blocked IIS server
PBF (street map mapbox vector files) files are not allowed to be served /downloaded from IIS (2008 R8) and I need them to be.
The background
PBFs are served OK when using the react development ...
4
votes
1
answer
922
views
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 ...
0
votes
0
answers
394
views
reverse geocode using osm2pgsql
Hello I have followed this tutorial
https://www.compose.com/articles/geofile-using-openstreetmap-data-in-compose-postgresql-2/
and Implemented database correctly.
I am looking for a query in which ...
1
vote
1
answer
2k
views
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 : ...
0
votes
1
answer
688
views
Open Street Map - Itinero C# - Road Restrictions
I'm using Itinero in C#
I want to restrict in my route.
For Example;
There are 3 bridges between two points.
Name of the first bridge X
Name of the second bridge Y
Name of the third bridge Z
If I ...
-1
votes
1
answer
2k
views
Mapbox GL JS - possible to get the street name for a specific lng/lat?
I have a Mapbox GL JS implementation that gets its data from a vector mbtiles file that I downloaded from www.openmaptiles.com. I use tileserver.php with the mbtiles file to serve the PBF data, which ...
0
votes
0
answers
959
views
how to convert custom data to osm.pbf
I have a spatial db with links,nodes,traffic restriction etc..
I want to convert those spatial data to osm.pbf ,I know some osm.pbf
from https://wiki.openstreetmap.org/wiki/PBF_Format
structrue,like ...
3
votes
1
answer
2k
views
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
...
5
votes
2
answers
4k
views
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 ...