NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi all,

I am using Osmium to extract data from a europe_latest.pbf file.

I am trying to find the correct request in order to map the International, National, Regional and Local bike routes as presented on the CyclOSM website: https://www.cyclosm.org/#map=5/47.730/17.830/cyclosm_live

I have not figured it out yet. I tried requests such as osmium tags-filter data/_pbf/europe-latest.osm.pbf wr/route=bicycle wr/network=icn -o data/_osm/europe_cycleways_int.osm but the export file is very huge. It seems it is not filtered as the multitagging would suggest.

Have someone already tried working on cycling routes with Osmium?

Thank you for your time.

asked 03 Jun '21, 16:08

Lina%20Kortobi's gravatar image

Lina Kortobi
26113
accept rate: 0%

1

Not sure what you mean with "very huge". When you ask for the all bicycle routes you'll get lots of roads over which those routes go, so that is quite a bit of data. So that seems normal. Not sure also what you mean with "multitagging". It seems you need to familiarize yourself a bit more with the OSM data model. Have a look at the -R and -t options, maybe one or the other is what you need.

(04 Jun '21, 09:36) Jochen Topf

By multitagging I meant using the osmium tool to filter the request. In the example above, when I type wr/route=bicycle wr/network=icn, I want it to understand there is an 'and' between the tags - bicycle routes and international networks which would export only the international bicycle routes. However, I end up with all of them, and some of them are not even bicycle routes in my extract.

(04 Jun '21, 09:43) Lina Kortobi

It seems to me that osmium tags-filter do OR not AND. You can however do what you want in two passes, which would be efficient if you want international, national and regional routes in separate files.

permanent link

answered 06 Jun '21, 18:17

yvecai's gravatar image

yvecai
1.5k1226
accept rate: 9%

Thank you for your help! What would exactly be doing it in two passes?

(07 Jun '21, 10:05) Lina Kortobi
3

Create a first file containing all route=bicycle, then filter this file with network=icn.

(07 Jun '21, 10:11) yvecai

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×38
×29
×22
×6
×4

question asked: 03 Jun '21, 16:08

question was seen: 1,158 times

last updated: 07 Jun '21, 10:11

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum