I am trying to export all of the landuse tagged military from OSM using Osmosis. It looks like it works successfully but I get an empty OSM file. Any ideas what I am doing wrong?

C:\Users\chris\Downloads>osmosis --read-pbf c:\users\chris\downloads\wales-latest.osm.pbf --node-key-value keyValueList="landuse=military" --write-xml wales_military.osm Sep 19, 2017 7:38:24 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.45 Sep 19, 2017 7:38:24 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. Sep 19, 2017 7:38:24 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Launching pipeline execution. Sep 19, 2017 7:38:24 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline executing, waiting for completion. Sep 19, 2017 7:38:32 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline complete. Sep 19, 2017 7:38:32 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Total execution time: 8536 milliseconds.

asked 19 Sep '17, 19:44

ChristopherSmit702's gravatar image

ChristopherS...
9112
accept rate: 0%


Landuse will mostly be on ways, so you will need a way filter to extract them (you currently have --node-key-value, which is what it sounds like).

If you are just getting started working with OSM data, take a look at http://wiki.openstreetmap.org/wiki/Elements

permanent link

answered 19 Sep '17, 20:01

maxerickson's gravatar image

maxerickson
9.7k868137
accept rate: 32%

edited 19 Sep '17, 20:48

1

That was really helpful thanks, I changed it to ways and rejected relations which got the answer I was expecting.

(19 Sep '17, 20:43) ChristopherS...

According to tag info, there are 2000 landuse= military tagged on relations, wonder why you reject relations? Compare this with the 31.000 on ways.

(20 Sep '17, 03:50) escada
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:

×494
×266
×201
×58

question asked: 19 Sep '17, 19:44

question was seen: 714 times

last updated: 20 Sep '17, 03:50

powered by OSQA