NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

shafi-as
107712
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 ♦
82.5k927201273
accept rate: 23%

edited 26 Nov '20, 17:50

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

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:

×710
×252
×66

question asked: 26 Nov '20, 17:42

question was seen: 1,255 times

last updated: 26 Nov '20, 18:05

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