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 ChristopherS... |
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 answered 19 Sep '17, 20:01 maxerickson 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
|