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

Hi, I'm trying to create a .pbf file with only water (Coastlines, rivers, streams, lakes). I'm using the following with perfect results except none of the lakes come through:

osmosis --rbf file.osm.pbf outPipe.0=1 --wkv keyValueList=natural.coastline,natural.water,waterway.river,waterway.riverbank,waterway.stream,water.lake inPipe.0=1 outPipe.0=2 --tf reject-relations inPipe.0=2 outPipe.0=3 --used-nodes inPipe.0=3 outPipe.0=4 --wb file=filewater.osm.pbf inPipe.0=4

I'm running Osmosis version 0.47 on Windows 10 with Java 8 (update 211). I've tried many variation on the keyValueList and no matter what I try, the lakes won't pass through. I've been working on this for days and haven't been able to figure things out; any help would be greatly appreciated. btw, the file I'm starting with has the lakes in it, with natural=water, and water=lake in the keyValues tags.

This question is marked "community wiki".

asked 08 May '19, 22:02

dmoore45's gravatar image

dmoore45
21112
accept rate: 0%

edited 08 May '19, 22:05

2

You are rejecting relations: most larger waterbodies will be mapped as such. I would suggest perhaps using osmfilter which provides a less complicated way of doing this.

(09 May '19, 13:33) SK53 ♦

SK53, I have run the same command with --tf accept-relations, and also leaving accept/reject out altogether. I get the same result: lakes are gone.

Thanks for the suggestion on osmfilter. I'll play with that to see if I can get it to work. I appreciate your help!

(09 May '19, 17:54) dmoore45

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
×79
×20
×14
×1

question asked: 08 May '19, 22:02

question was seen: 955 times

last updated: 09 May '19, 17:54

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