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

Hello,

I'm trying to extract water bodies and I'm using Osmosis to filter the osm data for a certain area.

When using the --way-key-value option, I specify things like waterway.riverbank for example. My problem is that sometimes, ways that are parts of rivers aren't tagged as such and the only way to know their type is when they are used in a relation.

Unfortunately, when I reach a relation that is tagged as a waterbody of some sort, all of its ways without proper tagging will have been stripped by the filter.

Is there a way to tell Osmosis to keep ways used in relations, regardless of the way tags? --used-way wouldn't work in my case as not all the ways are contained in relations...

Any ideas?

Thanks!

asked 22 Oct '12, 14:08

mlaban's gravatar image

mlaban
26113
accept rate: 0%


I am not so familiar with the filtering options of osmosis, but I recommend to try Osmfilter

Sometimes it can be easier to use, IMHO.

permanent link

answered 22 Oct '12, 16:26

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Thanks, I had found OsmFilter but it doesn't support the PBF file format at this point unfortunately. So I have to convert the files from PBF back to XML, then filter, then convert back to PBF.

I'll keep digging...

(23 Oct '12, 09:32) mlaban

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:

×252
×236
×167
×18

question asked: 22 Oct '12, 14:08

question was seen: 4,406 times

last updated: 23 Oct '12, 09:32

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