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. Cheers, Brett On Sun, Oct 17, 2010 at 1:15 AM, Flex Fauler <faulerf...@gmx.de> wrote: > Hi, > 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 > keyValueList="place.city,place.town,place.village,place.hamlet,place.suburb" > --used-node idTrackerType=BitSet --write-xml out.osm > > > 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" > origin="0.37-SNAPSHOT"/> > </osm> > > > 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@openstreetmap.org > http://lists.openstreetmap.org/listinfo/osmosis-dev >
_______________________________________________ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev