Changes between Initial Version and Version 1 of Ru:Help/CommandLineOptions


Ignore:
Timestamp:
2017-10-12T15:01:07+02:00 (7 years ago)
Author:
ak099
Comment:

частичный перевод

Legend:

Unmodified
Added
Removed
Modified
  • Ru:Help/CommandLineOptions

    v1 v1  
     1[[TranslatedPages(revision=1)]]
     2
     3== Получение актуальных сведений об использовании ==
     4Чтобы получить актуальные на данный момент сведения об использовании параметров командной строки (информация будет переведённой на ваш язык) запустите JOSM с параметром --help:
     5{{{
     6java -jar josm-tested.jar --help
     7}}}
     8
     9Соответствующая часть исходного кода: [source:trunk/src/org/openstreetmap/josm/gui/MainApplication.java#L130 org/openstreetmap/josm/gui/MainApplication.java#L130].
     10
     11= Приведённые ниже сведения могут быть устаревшими =
     12== Использование ==
     13
     14Использование:
     15{{{
     16#!sh
     17java <опции Java> <опции JOSM JVM> -jar josm-tested.jar <Post jar options> [file]
     18}}}
     19
     20or
     21
     22{{{
     23#!sh
     24javaws https://josm.openstreetmap.de/download/josm.jnlp
     25javaws [options] [URL or path to josm.jnlp file]
     26}}}
     27
     28
     29Java 8 docs about javaws: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javaws.html
     30
     31=== Java options ===
     32{{{
     33-Xmx...m                                  Set maximum Java heap size in megabytes
     34}}}
     35
     36For some tasks, JOSM has a large appetite for memory. On the one hand, it may be necessary to configure an  -Xmx memory size that supports more JOSM plugins and other JOSM editing features. On the other hand, slow systems or those systems with few memory resources, can be stabilized by restricting JOSM memory use.  These example Java memory settings provide examples that start with systems that have few memory resources to systems with vast amounts of memory.
     37{{{
     38-Xmx256m
     39-Xmx512m
     40-Xmx768m
     41-Xmx1024m
     42-Xmx1536m
     43-Xmx2048m
     44}}}
     45
     46=== JOSM JVM options ===
     47
     48provided as Java system properties
     49{{{
     50-Djosm.pref=/PATH/TO/JOSM/PREF            Set the preferences directory
     51-Djosm.userdata=/PATH/TO/JOSM/USERDATA    Set the user data directory
     52-Djosm.cache=/PATH/TO/JOSM/CACHE          Set the cache directory
     53-Djosm.home=/PATH/TO/JOSM/HOMEDIR         Relocate all 3 directories to homedir.
     54-Djosm.home=/path/to/JOSM/folder/         Change the folder for all user settings. Cache directory will be in homedir/cache
     55}}}
     56**Note**: `-Djosm.home` has lower precedence, i.e. the specific setting overrides the general one
     57
     58=== Post jar options ===
     59
     60These options need to be provided after the -jar josm.jar part of the command line.
     61
     62{{{
     63--help|-h                                 Show this help
     64--geometry=widthxheight(+|-)x(+|-)y       Standard unix geometry argument
     65[--download=]minlat,minlon,maxlat,maxlon  Download the bounding box
     66[--download=]<URL>                        Download the location at the URL (with lat=x&lon=y&zoom=z)
     67[--download=]<filename>                   Open a file (any file type that can be opened with File/Open)
     68--downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS
     69--downloadgps=<URL>                       Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS
     70--selection=<searchstring>                Select with the given search
     71
     72--[no-]maximize                           Launch in maximized mode
     73--reset-preferences                       Reset the preferences to default
     74--load-preferences=<url-to-xml>           Changes preferences according to the XML file
     75--set=<key>=<value>                       Set preference key to value
     76--language=<language>                     Set the language
     77--version                                 Displays the JOSM version and exits
     78--debug                                   Print debugging messages to console
     79--skip-plugins                            Skip loading plugins
     80--offline=<osm_api|josm_website|all>      Disable access to the given resource(s), separated by comma
     81}}}
     82
     83examples
     84{{{
     85#!sh
     86java -jar josm.jar track1.gpx track2.gpx london.osm
     87java -jar josm.jar https://www.openstreetmap.org/#map=13/43.2/11.1
     88java -jar josm.jar london.osm --selection=http://www.ostertag.name/osm/OSM_errors_node-duplicate.xml
     89java -jar josm.jar 43.2,11.1,43.4,11.4
     90java -jar josm.jar --set=expert=true
     91java -Djosm.pref=$XDG_CONFIG_HOME -Djosm.userdata=$XDG_DATA_HOME -Djosm.cache=$XDG_CACHE_HOME -jar josm.jar
     92java -Djosm.home=/home/user/.josm_dev -jar josm.jar
     93java -Xmx1024m -jar josm.jar
     94}}}
     95
     96Parameters `--download`, `--downloadgps` and `--selection` are processed in this order.
     97Make sure you load some data if you use `--selection`.
     98
     99=== See also ===
     100* [wiki:Help/Preferences Preferences] - overview page about all "preferences"
     101* [[jnlpOptions]]