Why not ask your question on the new OpenStreetMap Community Forum?

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

accept rate: 0%

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

permanent link

answered 26 Nov '20, 17:46

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

edited 26 Nov '20, 17:50

SomeoneElse's gravatar image

SomeoneElse ♦


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



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:


question asked: 26 Nov '20, 17:42

question was seen: 975 times

last updated: 26 Nov '20, 18:05

powered by OSQA