NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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
12.0k15106147
accept rate: 35%

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

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:

×252
×223
×163
×66
×2

question asked: 16 Nov '17, 10:02

question was seen: 2,571 times

last updated: 17 Nov '17, 19:52

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum