문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top