mantlik / osm2garmin

Convert OpenStreetMap data to Garmin-compatible format.
http://osm2garmin.mantlik.org/
GNU General Public License v2.0
9 stars 1 forks source link

Temporary files #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
osm2garmin fills my C: drive (c:\users\user\appdata\local\temp\) with a lot of 
huge files.

Is there a way to set another temporary directory on another drive?

Original issue reported on code.google.com by mit...@gmail.com on 11 Apr 2013 at 9:20

GoogleCodeExporter commented 9 years ago
Temporal directory is filled in with large files by Osmosis, the external tool 
used by Osm2garmin to process OSM data and updates. According to the Osmosis 
documentation, this command-line switch should change temporal directory for 
Osmosis:

-Djava.io.tmpdir=<your-tmp-dir-absolute-path>

You can edit default_options line in the file osm2garmin.conf located somewhere 
here:

C:\Program Files\osm2garmin_1.2\etc\osm2garmin.conf

to make change of the temporal directory permanent.

Original comment by mantl...@gmail.com on 11 Apr 2013 at 9:47

GoogleCodeExporter commented 9 years ago
One more note: Use forward slashes in the parameter, e.g.
-Djava.io.tmpdir=d:/myosmosistemdir/

Original comment by mantl...@gmail.com on 11 Apr 2013 at 9:49

GoogleCodeExporter commented 9 years ago
Ok! Thank you.

Original comment by mit...@gmail.com on 11 Apr 2013 at 9:57

GoogleCodeExporter commented 9 years ago
-J-Djava.io.tmpdir=d:/myosmosistempdir/ works.

Original comment by mit...@gmail.com on 11 Apr 2013 at 10:13

GoogleCodeExporter commented 9 years ago
Thank you for your contribution. I will put the tip into FAQ.

Original comment by mantl...@gmail.com on 11 Apr 2013 at 10:32