46 | | --help|-h Show this help |
47 | | --geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argument |
48 | | [--download=]minlat,minlon,maxlat,maxlon Download the bounding box |
49 | | [--download=]<URL> Download the location URL which has |
50 | | coordinates like lat=x&lon=y&zoom=z |
51 | | [--download=]<filename> Open a file (same as Menu/File/Open) |
52 | | --downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS |
53 | | --downloadgps=<URL> Download the location as raw GPS |
54 | | --selection=<searchstring> Select with the given search |
55 | | --[no-]maximize Launch in maximized mode |
56 | | --reset-preferences Reset the preferences to default |
57 | | --load-preferences=<url-to-xml> Import preferences from XML file |
58 | | --set=<key>=<value> Set preference key to value |
59 | | --language=<language> Set the language |
60 | | --version Displays the JOSM version and exits |
61 | | --debug or --trace Print debugging messages to console |
62 | | --skip-plugins Skip loading plugins |
63 | | --offline=[osm_api,][josm_website,][certificates,][all] Disable access to the listed resources |
| 47 | --help|-h Show this help |
| 48 | --geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argument |
| 49 | [--download=]minlat,minlon,maxlat,maxlon Download the bounding box |
| 50 | [--download=]<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) |
| 51 | [--download=]<filename> Open a file (any file type that can be opened with File/Open) |
| 52 | --downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS |
| 53 | --downloadgps=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS |
| 54 | --selection=<searchstring> Select with the given search |
| 55 | --[no-]maximize Launch in maximised mode |
| 56 | --reset-preferences Reset the preferences to default |
| 57 | |
| 58 | --load-preferences=<url-to-xml> Changes preferences according to the XML file |
| 59 | |
| 60 | --set=<key>=<value> Set preference key to value |
| 61 | |
| 62 | --language=<language> Set the language |
| 63 | |
| 64 | --version Displays the JOSM version and exits |
| 65 | |
| 66 | --debug Print debugging messages to console |
| 67 | |
| 68 | --skip-plugins Skip loading plugins |
| 69 | |
| 70 | --offline=<OSM_API|JOSM_WEBSITE|CACHE_UPDATES|CERTIFICATES|ALL> |
| 71 | Disable access to the given resource(s), separated by comma |
| 72 | <OSM API|JOSM website|Cache updates|Certificates|All> |
155 | | === See also === |
| 163 | == JOSM rendering command line interface == |
| 164 | |
| 165 | {{{ |
| 166 | Usage: |
| 167 | java -jar josm.jar render <options> |
| 168 | |
| 169 | Description: |
| 170 | Renders data and saves the result to an image file. |
| 171 | |
| 172 | Options: |
| 173 | --help|-h Show this help |
| 174 | --input|-i <file> Input data file name (.osm) |
| 175 | --output|-o <file> Output image file name (.png); defaults to 'out.png' |
| 176 | --style|-s <file> Style file to use for rendering (.mapcss or .zip) |
| 177 | This option can be repeated to load multiple styles. |
| 178 | --setting <key>:<value> Style setting (in JOSM accessible in the style list dialogue right click menu) |
| 179 | Applies to the last style loaded with the --style option. |
| 180 | --zoom|-z <lvl> Select zoom level to render. (integer value, 0=entire earth, 18=street level) |
| 181 | --scale <scale> Select the map scale |
| 182 | A value of 10000 denotes a scale of 1:10000 (1 cm on the map equals 100 m on the ground; display resolution: 96 dpi) |
| 183 | Options --zoom and --scale are mutually exclusive. |
| 184 | --bounds|-b auto|<min_lon>,<min_lat>,<max_lon>,<max_lat> |
| 185 | Area to render, default value is 'auto' |
| 186 | With keyword 'auto', the downloaded area in the .osm input file will be used (if recorded). |
| 187 | --anchor <lon>,<lat> Specify bottom left corner of the rendering area |
| 188 | Used in combination with width and height options to determine the area to render. |
| 189 | --width-m <number> Width of the rendered area, in meter |
| 190 | --height-m <number> Height of the rendered area, in metres |
| 191 | --width-px <number> Width of the target image, in pixels |
| 192 | --height-px <number> Height of the target image, in pixels |
| 193 | --projection <code> Projection to use, default value 'epsg:3857' (web-Mercator) |
| 194 | --max-image-size <number> Maximum image width/height in pixel ('0' means no limit), default value: 20000 |
| 195 | |
| 196 | To specify the rendered area and scale, the options can be combined in various ways: |
| 197 | * --bounds (--zoom|--scale|--width-px|--height-px) |
| 198 | * --anchor (--width-m|--width-px) (--height-m|--height-px) (--zoom|--scale) |
| 199 | * --anchor --width-m --height-m (--width-px|--height-px) |
| 200 | * --anchor --width-px --height-px (--width-m|--height-m) |
| 201 | If neither 'bounds' nor 'anchor' is given, the default value --bounds=auto takes effect and the bounds of the download area in the .osm input file are used. |
| 202 | |
| 203 | Examples: |
| 204 | java -jar josm.jar render -i data.osm -s style.mapcss -z 16 |
| 205 | josm render -i data.osm -s style.mapcss --scale 5000 |
| 206 | josm render -i data.osm -s style.mapcss -z 16 -o image.png |
| 207 | josm render -i data.osm -s elemstyles.mapcss --setting hide_icons:false -z 16 |
| 208 | josm render -i data.osm -s style.mapcss -s another_style.mapcss -z 16 -o image.png |
| 209 | josm render -i data.osm -s style.mapcss --bounds 21.151,51.401,21.152,51.402 -z 16 |
| 210 | josm render -i data.osm -s style.mapcss --anchor 21.151,51.401 --width-m 500 --height-m 300 -z 16 |
| 211 | josm render -i data.osm -s style.mapcss --anchor 21.151,51.401 --width-m 500 --height-m 300 --width-px 1800 |
| 212 | josm render -i data.osm -s style.mapcss --scale 5000 --projection epsg:4326 |
| 213 | }}} |
| 214 | |
| 215 | == JOSM projection command line interface == |
| 216 | |
| 217 | {{{ |
| 218 | Usage: |
| 219 | java -jar josm.jar project <options> <crs> +to <crs> [file] |
| 220 | |
| 221 | Description: |
| 222 | Converts coordinates from one coordinate reference system to another. |
| 223 | |
| 224 | Options: |
| 225 | --help|-h Show this help |
| 226 | -I Switch input and output crs |
| 227 | -r Switch order of input coordinates (east/north, lon/lat) |
| 228 | -s Switch order of output coordinates (east/north, lon/lat) |
| 229 | |
| 230 | <crs>: |
| 231 | The format for input and output coordinate reference system is similar to that of the PROJ.4 software. |
| 232 | |
| 233 | [file]: |
| 234 | Reads input data from one or more files listed as positional arguments. When no files are given, or the filename is "-", data is read from standard input. |
| 235 | |
| 236 | Examples: |
| 237 | java -jar josm.jar project +init=epsg:4326 +to +init=epsg:3857 <<<"11.232274 50.5685716" |
| 238 | => 1250371.1334500168 6545331.055189664 |
| 239 | |
| 240 | java -jar josm.jar project +proj=lonlat +datum=WGS84 +to +proj=merc +a=6378137 +b=6378137 +nadgrids=@null <<EOF |
| 241 | 11d13'56.19"E 50d34'6.86"N |
| 242 | 118d39'30.42"W 37d20'18.76"N |
| 243 | EOF |
| 244 | => 1250371.1334500168 6545331.055189664 |
| 245 | -1.3208998232319113E7 4486401.160664663 |
| 246 | }}} |
| 247 | |
| 248 | == See also == |