Hello,

I would like to extract all roads in the Myanmar OSM data using osmosis in the window's command prompt. The following is my code:

osmosis --read-xml myanmar-latest (2).osm --tf accept-ways highway=* --used-node --write-xml myanmar-roads.osm

I got the following error:

Nov 16, 2017 5:45:15 PM org.openstreetmap.osmosis.core.Osmosis main

SEVERE: Execution aborted.

org.openstreetmap.osmosis.core.OsmosisRuntimeException: Only one default (un-named) argument can exist per task. Arguments 3 and 2 have no name.

Any idea where I went wrong and how to fix this? Thanks in advance!

asked 16 Nov '17, 10:02

nrsbrn's gravatar image

nrsbrn
16112
accept rate: 0%


If your file name contains spaces, you probably need to use quotes around it. Try replacing

--read-xml myanmar-latest (2).osm

with

--read-xml "myanmar-latest (2).osm"

or rename the file to something without spaces.

permanent link

answered 16 Nov '17, 18:41

Tordanik's gravatar image

Tordanik
10.6k1294131
accept rate: 34%

1

Oh wow! I'm new to using this tool. I've added the quote and managed to get the data I need. Thank you for your help, really appreciate it!

(17 Nov '17, 02:47) nrsbrn

Glad to help! :) If your problem is solved, you can mark the question as answered by clicking the checkmark icon next to an answer.

(17 Nov '17, 19:52) Tordanik
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×210
×179
×128
×43
×2

question asked: 16 Nov '17, 10:02

question was seen: 970 times

last updated: 17 Nov '17, 19:52

powered by OSQA