Questions tagged [pyosmium]

PyOsmium is a python module providing the bindings for Libosmium, an open source C++ library for working with OpenStreetMap data.

PyOsmium is a python module providing the bindings for Libosmium, an open source C++ library for working with OpenStreetMap data.

8 questions
2
votes
1 answer

Enable Handler Class Methods to Yield Instance Attributes

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 instance attributes instead of updating them…
manesioz
  • 798
  • 1
  • 9
  • 21
1
vote
0 answers

How to convert osmium.osm.location cordinates to normal format coordinates

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 the one of the coordinates using pyproj but the…
data en
  • 431
  • 1
  • 2
  • 9
1
vote
1 answer

pyosmium - Build a Geojson linestring based on OSM Relation

I have a python script to analyse OSM data, and the objective is to build a GeoJson with specific data issued from OSM relation. I'm currently focusing on OSM relation that represents 'hiking' trail like this one. According to the…
1
vote
1 answer

How to extract relation members from .osm xml files

All, I've been trying to build a website (in Django) which is to be an index of all MTB routes in the world. I'm a Pythonian so wherever I can I try to use Python. I've successfully extracted data from the OSM API (Display relation (trail) in…
Freek
  • 1,097
  • 2
  • 12
  • 30
1
vote
1 answer

osmium - add output header to PBF

I create multiple synthetic OSM PBF files with pyosmium and later on I want to merge them and use osmium executable to set some custom headers on the PBF for archiving purposes. However, calls such as osmium cat --no-progress example1.pbf…
nilsnolde
  • 199
  • 1
  • 12
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
1 answer

Cant parse XML tree without bounds element from Pyosmium

I downloaded some data from OpenStreetMap, and have been sorting the data so i only have the nodes and ways that i need for my project (highways and the corresponding nodes in the references). To sort the XML file and create a new one, i use the…
Skovgaard
  • 11
  • 3
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…