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
25 questions
0
votes
0
answers
17
views
Osmium subprocess call
How do I correctly format a subprocess call to osmium via Jupyter Notebook please?
#- osmium extract -p paris-polygon.poly france.pbf -o paris.pbf
sp = subprocess.check_call(['/Users/.../miniconda3/...
0
votes
1
answer
99
views
How to merge OSM and Microsoft/Google building footprint data
How can I successfully combine Open Street Map vector data with the latest building footprint data from Google/Microsoft or Overture Maps, and convert the result to a PMTiles file successfully?
The ...
0
votes
1
answer
313
views
How to use turn:lanes in osm to find lane connectivity on intersection
In osm,
Way A has nodes [n1, n2]
Way B has nodes [n2, n3]
Way C has nodes [n3, n4]
Way D has nodes [n4, n5]
coordinates - 1.28657, 103.8452
Way A has traffic "turn:lanes"=>"left|...
1
vote
1
answer
132
views
ogr2ogr output missing some relations
I'm trying to extract data from planet.osm.pbf with osmium and ogr2ogr as a CSV file. However some relations seem to be missing in the output. For example, this relation doesn't show up as a ...
1
vote
0
answers
190
views
Lua error when trying to extract OSRM data
I am using a newer MacBook Pro with a Silicon chip. Following the example here (https://github.com/stanfordfuturebay/osrm-local), I am trying to extract data downloaded from https://download.geofabrik....
2
votes
1
answer
373
views
Create polygon around specific OSM tags
I have a OSM file (http://download.geofabrik.de/europe/malta-latest.osm.pbf). I am only interested in data that are around ramps (motorway_link,trunk_link,primary_link,secondary_link,tertiary_link) as ...
1
vote
1
answer
303
views
Download and evaluate historical OpenStreetMap data
objective: I want to download historical OSM data for Germany and check the number of new added nodes, ways, relations within a certain time range (01.01.2007 to 01.02.2007). Afterwards I want to ...
2
votes
1
answer
880
views
Osmium won't filter a tag by name properly
I am trying to filter a .pbf file with Osmium. I can extract all the features with the tag /admin_level=2, but I want to filter even further by specifying the name, because there are some cases where ...
1
vote
0
answers
304
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 ...
1
vote
1
answer
2k
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 ...
2
votes
1
answer
446
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
1
answer
407
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
1
answer
385
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
1
answer
843
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
0
answers
106
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
0
answers
107
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
0
answers
124
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
0
answers
1k
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
1
answer
305
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
0
answers
196
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 ...
2
votes
2
answers
1k
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
0
answers
213
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
1
answer
1k
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
0
answers
741
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
0
answers
430
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):
... ...