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.5k453209
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
Your answer
toggle preview

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:

×216
×189
×139
×14

question asked: 22 Oct '12, 14:08

question was seen: 2,598 times

last updated: 23 Oct '12, 09:32

powered by OSQA