eamon1234
eamon1234

Reputation: 1585

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.

Upvotes: 1

Views: 2205

Answers (3)

Mesa
Mesa

Reputation: 309

Had the same error. In my case, the command was split over several lines using \:

osmosis \
  --read-xml ireland.osm \
  --tf accept-nodes amenity="fast food" \
  --write-xml output.osm

The reason of the error was that there was a space after one of the backslashes.

Upvotes: 0

Anton R
Anton R

Reputation: 519

you need to put "" and ',' on amenity=fast food.

it should be amenity="fast,food"

Upvotes: 0

Plutoz
Plutoz

Reputation: 703

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

Upvotes: 2

Related Questions