﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
15273	extend command line interface: commands	bastiK	team	"It would be useful to have access to certain JOSM features via command line, e.g. validation (#15182), projection, rendering (#15229). For this purpose, I suggest the following extended syntax:
{{{#!bash
java -jar josm.jar <keyword> <options> <args>
}}}

So for instance to use projection or rendering features, it would be
{{{#!bash
java -jar josm.jar projection -v +init=epsg:4326 +to +init=epsg:3857 <input.txt
java -jar josm.jar rendering -i data.osm --style style.mapcss --zoom 16 --box ... -o img.jpg
}}}
The current command line features are accessed with the `josm` keyword, which is the default and optional. Both of the following starts JOSM and opens the file `track1.gpx`:
{{{#!bash
java -jar josm.jar josm track1.gpx
java -jar josm.jar track1.gpx
}}}

If we have separate jar files for modules in the future, then you would simply drop the keyword:
{{{#!bash
java -jar josm-projection.jar -v +init=epsg:4326 +to +init=epsg:3857 <input.txt
java -jar josm-rendering.jar -i data.osm --style style.mapcss --zoom 16 --box ... -o img.jpg
}}}


Update:

Documentation of commands for the main help text:
{{{
Java OpenStreetMap Editor [JOSM/1.5 (12915 SVN en) Linux Ubuntu 17.04]

usage:
	java -jar josm.jar [<command>] <options>...

commands:
	runjosm     launch JOSM (default, performed when no command is specified)
	render      render data and save the result to an image file
	project     convert coordinates from one coordinate reference system to another

For details on the render and project commands, run them with the --help option.
The remainder of this help page documents the runjosm command.

options:
	--help|-h                                 Show this help
...
}}}"	enhancement	closed	normal	17.09	Core		fixed		
