Questions tagged [osmium]

A fast and flexible C++ toolkit and framework for working with OSM data (libosmium), a command line tool that uses the Osmium C++ library (osmium-tool), a Python wrapper for the C++ library (PyOsmium), a NodeJS wrapper for the C++ library

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

Extracting OSM ways based on bounding box & assigning common tags for all connected groups

I'm looking to render streets based on OSM data. I'm planning to split planet.osm into many smaller tiles that clients can load/unload. A tile should contain all nodes that have at least 1 node in its ...
user avatar
  • 101
1 vote
0 answers
41 views

How to convert osmium.osm.location cordinates to normal format coordinates in python(Pyosmium)

I have extracted the coordinates data from nodes using pyosmium. Though I was successful in extracting the data but the coordinates which osmium is giving is not in normal format, I tried to convert ...
user avatar
  • 11
0 votes
0 answers
34 views

Osmium how to extract building heights

The documentation mentions, there should be building height present in the building data. However when I extract building data from global north american osm.pbf dataset, there is no such information. ...
user avatar
  • 173
0 votes
0 answers
22 views

Merging OSC files into one using osmium

I am trying to create PBF out of thousands of OSC files using osmium. I have written a bash script for doing this task using jenkins. I am merging all OSC files into one master OSC files Then ...
user avatar
0 votes
0 answers
284 views

Can't get osmium to run on command line in windows 10

I have installed osmium but when trying to run it through command line I get the error 'osmium' is not recognized as an internal or external command, operable program or batch file. This is usually ...
user avatar
  • 712
2 votes
1 answer
104 views

Osmium and OSM: Remove a relation from .pbf map file

I am trying to use osmium to remove a relation from a .pbf file (specifically the Denmark extract from Geofabrik)1. The relation is part of a cycle network. I essentially want to calculate routing ...
user avatar
  • 63
2 votes
1 answer
156 views

OSM - unable to filter Alaska state boundary with osmium

I am unable to get Alaska state polygon when filtering with osmium. Any idea how to debug/solve this? Info: downloaded: http://download.geofabrik.de/north-america-latest.osm.pbf trying to filter US ...
user avatar
1 vote
1 answer
102 views

osmium processes piping stdin/stdout

I have tried to pipe several osmiums processes like this: osmium tags-filter central-america-latest.osm.pbf r/admin_level=2 -f pbf | osmium tags-filter /dev/stdin -F pbf r/type=boundary -f pbf But i ...
user avatar
0 votes
1 answer
362 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
57 views

Remove incomplete ways from OSM data

I'm trying to extract all data OSM within a GeoJSON polygon using osmium extract. I want the output to include only nodes and ways completely contained within the polygon. I tried using the --strategy ...
user avatar
1 vote
0 answers
59 views

OSMIUM deleted column conflict with OSM

The following code used to extract the data from a history file. import osmium class CounterHandler(osmium.SimpleHandler): def __init__(self): osmium.SimpleHandler.__init__(self) ...
user avatar
  • 579
0 votes
0 answers
57 views

Enable Handler Class Methods to Yield Instance Attribute in Pyosmium

This question is regarding the package pyosmium specifically. I was just wondering if the following functionality is possible, and if not how it could be implemented. I want to stream/yield certain ...
user avatar
  • 111
1 vote
0 answers
802 views

Error when importing merged osm.pbf files into nominatim's PostgreSQL database

Im using Nominatim 3.3 (https://github.com/mediagis/nominatim-docker/tree/master/3.3) within docker. I already imported succesfully 2 regions (not together, my PostgreSQL database contained one region ...
user avatar
  • 11
0 votes
1 answer
166 views

Exclude geographic extent of an OSM file

Osmium and Osmosis command tools have the capability of extracting a geographic extent from an OSM file. osmosis --read-xml test.osm --tee 1 --bounding-box left=15 top=46 --write-xml extract_test....
user avatar
0 votes
0 answers
135 views

Filter geofabrik to Mapbox Style

GeoFabrik's extracts - as expected - have a massive amount of unnecessary information for most applications. Filtering this information is a critical step to decrease the map's size, especially for ...
user avatar
0 votes
2 answers
753 views

Retrieve OSM changeset information (pyosmium)

I would like to ask if there's an easy way to query OSM changesets' information like user, timestamp, comment and hashtags in that changeset. In particular I would like to retrieve all the user names ...
user avatar
2 votes
0 answers
107 views

Adding location points to a graph of roads using osmium and finding the closest roads

I am using c++ 11 and libosmium 2.13.1. In my project I need a graph of roads of an area and I I have figured that part out. My problem is with adding locations to that graph that are not located on ...
user avatar
1 vote
1 answer
699 views

How to merge OSM files with same ID?

After read this How merge osm files with same ID objects? I can't get any conclusion so please don't flag as duplicate. I have some PBF files came from NASA SRTM ( http://katze.tfiu.de/projects/...
user avatar
  • 1,906
3 votes
0 answers
485 views

How to repair OSM file with missing nodes

I'm using osmium-tool to create OSM history extracts, and then import then into Postgres using osm2po. This is causing problems when the ways do not have referential integrity (i.e., some nodes are ...
user avatar
  • 1,332
0 votes
0 answers
324 views

Parsing osmChange files with Pyosmium

I'm trying to use Pyosmium to parse changesets from an osmChange file (to replicate the osmium changeset-filter [1] functionalities): class MyHandler(osmium.SimpleHandler): ... ...
user avatar
  • 1,212