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
1answer
9 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 ...
2
votes
1answer
85 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 ...
1
vote
1answer
48 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 ...
0
votes
1answer
188 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
35 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 ...
1
vote
0answers
48 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) ...
0
votes
0answers
33 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 ...
1
vote
0answers
666 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 ...
0
votes
1answer
120 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....
0
votes
0answers
106 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 ...
0
votes
2answers
537 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 ...
2
votes
0answers
81 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 ...
1
vote
1answer
590 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/...
3
votes
0answers
439 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 ...
0
votes
0answers
279 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): ... ...