Question

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.

Was it helpful?

Solution

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

OTHER TIPS

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

it should be amenity="fast,food"

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top