Questions tagged [osmium]

osmium is a fast and flexible C++ library for working with OpenStreetMap data.

osmium is a fast and flexible C++ library for working with OpenStreetMap data.

Osmium was developed to work efficiently with huge amounts of data. The primary goals are processing speed and efficiently using available memory. It is both a low-level efficient OSM library as well as a powerful tool for various tasks.

28 questions
1
vote
1 answer

Offline Routing disconnection issue between ways while using OSM Data

I have osm file for my city, I am using Libosmium to read it, and I'm storing nodes of each way as Vertices of My Graph, and making edges between each 2 adjacent nodes in each way, and calculationg eucledian distance between them. the problem is…
Bilal
  • 3,191
  • 4
  • 21
  • 49
1
vote
1 answer

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 : gdal_fillnodata.py data.hgt data.tif Then I'm warping them…
Lucas Miller
  • 123
  • 1
  • 6
1
vote
1 answer

Plotting unsorted way/area's node reference from .osm file

So i am trying to define an exact shape (outter layer) of a building from .osm node references because I need to create more detail structure inside it (rooms, walls) based of some assumption. Until now I've extracted the node's coordinate from its…
Dion Dion
  • 27
  • 5
1
vote
0 answers

OSX: pyosmium setup error

I'm running a setup Python script for Pyosmium on OSX 10.11, Python version is 2.7: python setup.py install running install running build running build_py running build_ext building 'osmium._osmium' extension gcc -fno-strict-aliasing…
stephen
  • 53
  • 1
  • 6
0
votes
0 answers

Bounding a PBF file using a libosmium Handler

I have been using the Overpass API to extract data and this only provided the data back for the bounding box I requested, which was then fed into a chain of libosmium handlers. I would like to replace the Overpass querying with a local country-scale…
aliaksei
  • 714
  • 1
  • 9
  • 23
0
votes
0 answers

Extract Buildings Lat Lon and assosiated Tags from Open Street Map using python and osmium

I am trying and failing to extract any building details from a downloaded OSM PBF file. My current function below returns node ids that don't seem to exist in the locationTable. The node object has no other accessible attributes such as…
Chris
  • 182
  • 1
  • 1
  • 9
0
votes
0 answers

Build a linestring based on ways that share a common tag

I'm trying to build a unique object that gathers all ways that share a common tag. In my specific case, I'm trying to build a (multi-)linestring that gathers all ways that share the same name. For instance, the way 8491160224 is part of a hiking…
0
votes
0 answers

OSM Global Boundary/Places z0-3 US z0-14 combine

I would like to create a mbtiles service that has global boundaries and places from z0-3 combined with US only data from z0-14. wget https://download.geofabrik.de/north-america/us-latest.osm.pbf wget…
schierkolk
  • 29
  • 4
0
votes
1 answer

Osmium: complement tag addr:city to amenity=school query

I'm using a .pbf file containing the OpenStreetMap data from Switzerland and I the following Osmium command to extract every entry that contains the tag amenity=school,college: osmium tags-filter switzerland-exact.osm.pbf nwr/amenity=school,college…
patwis
  • 136
  • 1
  • 13
0
votes
1 answer

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 osmium library by using pip install osmium but it…
0
votes
1 answer

Building C++ project using build-appveyor

I do not know C++, but I need to build C++ application - Osmium tool. I have not known that it is really hard to build C++ programs. What I want is just create .exe file to merge maps. That is my simple goal. So docs says: On Windows you can…
Learner
  • 417
  • 6
  • 24
0
votes
1 answer

Configure Linux Distro on Google Dataflow Workers?

My Beam/Dataflow pipeline involves some data processing which uses a Linux CLI tool (specifically, osmium-tool version >= 1.9.1) which is only available for some newer Ubuntu distros (cosmic or disco). I cannot find any documentation on the OS specs…
manesioz
  • 798
  • 1
  • 9
  • 21
0
votes
1 answer

Callbacks not called in pyosmium's diff downloader

For some reason, this code does not print any nodes, ways, or relations, even though it clearly does download the minute updates from OpenStreetMap: import logging import osmium from osmium.replication.server import…
Yuri Astrakhan
  • 8,808
  • 6
  • 63
  • 97
1
2