gisopenstreetmapbincloudmadeosmosis

Filter OSM with osmosis for specific amenity


I have downloaded the Ireland file from cloudmade for osmosis (500 MB) and placed it in the osmosis bin folder, which osmosis reads fine. I would now like to create a new file with just those places tagged with Tag:amenity=fast food. My directory is:

C:\Program Files (x86)\osmosis-0.41\bin>

I'm currently following the tag-filter guide on the OSM wiki but can't get it to work. Here's what I'm trying:

     C:\Program Files (x86)\osmosis-0.41\bin>osmosis --read-xml ireland.osm 
--tf accept-nodes amenity=fast food --write-xml output.osm

And here's the error I get:

org.openstreetmap.osmosois.core.Osmosis main SEVERE: Execution aborted. org.openstreetmap.osmosis.core.OsmosisRuntimeException: Only one default (un-named) argument can exist per task. Arguments 6 and 4 have no name.....

Can you tell me what I'm doing wrong? Thanks.


Solution

  • you should put your filter value among "-s, like this: amenity="fast food"