Hi im trying to filter an osm file but i want the created file, to be in different folder rather than one im currently in, the command i use is sudo osmosis --read-pbf "/home/ubuntu/osmosis/bin/andorra-latest.osm.pbf" --tf accept-ways highway=motorway,motorway_link,trunk,trunk_link --tf reject-relation --used-node --write-xml "home/ubuntu/osmosis/bin/andorra-latest.osm"

this is the path i want to write my xml to --write-xml "home/ubuntu/osmosis/bin/andorra-latest.osm"

this is the error i am getting :

Caused by: java.io.FileNotFoundException: home/ubuntu/osmosis/bin/andorra-latest.osm (No such file or directory) any help would be much appreciated

asked 26 Nov '20, 17:42

shafi-as's gravatar image

shafi-as
105712
accept rate: 0%


You are missing a / before the "home" in your output path:

/home/ubuntu/osmosis/bin/andorra-latest.osm
permanent link

answered 26 Nov '20, 17:46

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
77.8k886901202
accept rate: 24%

edited 26 Nov '20, 17:50

SomeoneElse's gravatar image

SomeoneElse ♦
34.4k69357825

1

Thanks appreciate it :)

(26 Nov '20, 18:05) shafi-as
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:

×5
×241
×56

question asked: 26 Nov '20, 17:42

question was seen: 328 times

last updated: 26 Nov '20, 18:05

powered by OSQA