[osmosis-dev] Problem with --node-key-value
brett at bretth.com
Sun Oct 17 00:04:37 BST 2010
I've just taken a look at the code (I didn't write these tasks) for the
--node-key-value task and it works slightly differently to the
--way-key-value task. The --way-key-value task passes through node and
relation objects unchanged, but the --node-key-value task drops them.
That means that when you have a --node-key-value task followed by a
--used-node task you are going to drop everything. Note that it doesn't
make sense to use the --used-node task in this case anyway because place
nodes will typically not be part of a way.
So two suggestions:
1. Remove the --used-node task.
2. Use the --tag-filter task instead which is much more flexible.
On Sun, Oct 17, 2010 at 1:15 AM, Flex Fauler <faulerflex at gmx.de> wrote:
> i am new here so sorry if i mail to the wrong place.
> I wanted an osm file with all places=* so city, town etc.
> But i am getting an empty out.osm.
> What am i donig wrong? With ways (--way-key-value) this works great.
> terminal command:
> osmosis --read-xml in.osm --node-key-value
> --used-node idTrackerType=BitSet --write-xml out.osm
> <?xml version='1.0' encoding='UTF-8'?>
> <osm version="0.6" generator="Osmosis 0.36">
> <bound box="49.39089,7.76757,51.66252,10.24398"
> regards faulerflex
> GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
> gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osmosis-dev