Changes between Version 3 and Version 4 of Ru:Help/RemoteControlCommands


Ignore:
Timestamp:
2017-11-21T06:54:00+01:00 (6 years ago)
Author:
ak099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Ru:Help/RemoteControlCommands

    v3 v4  
    6262где
    6363||= **Параметр** =||= **Обязательный / необязательный** =||= **Значение** =||
    64 || `data` || О || The XML data to load, this should be URL encoded in a way that also encodes the special characters &, = and ? to resp. %26, %3D and %3F. The JS [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent encodeUriComponent()] method provides this functionality out of the box. ||
    65 || `new_layer` || Н || Chose to load the data in a new layer ||
    66 || `mime_type` || Н || Mime type of the data, by default this is "application/x-osm+xml", which is currently the only supported mime type, but in the future other mime types could be supported ||
    67 || `layer_name` || Н || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer ||
     64|| `data` || О || XML-данные для загрузки, это должен быть URL, закодированный так, чтобы спецсимволы &, = и ? имели коды %26, %3D и %3F, соответственно. Метод JS [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent encodeUriComponent()] обеспечивает такую функциональность «из коробки». ||
     65|| `new_layer` || Н || Загрузить данные в новый слой ||
     66|| `mime_type` || Н || Mime-тип данных, по умолчанию "application/x-osm+xml", который в настоящее время является единственным поддерживаемым mime-типом, но в дальнейшем будут поддерживаться и другие ||
     67|| `layer_name` || Н || Имеет смысл только если данные загружаются в новый слой; даёт JOSM подсказку, какое имя дать слою ||
    6868
    6969=== {{{open_file }}} ===
    70 Open a local file in JOSM.
     70Открывает локальный файл в JOSM.
    7171
    7272{{{
    7373GET /open_file?filename=...
    7474}}}
    75 where
    76 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    77 || `filename` || R || The local file to open in JOSM (Ie: /tmp/test.osm) ||
     75где
     76||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =||
     77|| `filename` || О || Локальный файл, открываемый в JOSM (например: /tmp/test.osm) ||
    7878
    7979
    8080=== {{{imagery}}} ===
    81 Instructs JOSM to add an imagery (WMS/TMS) layer.
     81Указывает JOSM добавить слой подложки (WMS/TMS).
    8282{{{
    8383GET /imagery?title=...&type=...&url=...
    8484}}}
    85 where
    86 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    87 || `url` || R || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters.  ||
    88 || `title` || O || The display name of the layer ||
    89 || `type` || O || Type of the layer. Possible values are `wms`, `tms` and `bing` [[BR]] (since !RemoteControl Version 1.3) ||
    90 || `cookies` || O ||  ||
    91 || `min_zoom` || O || The minimum zoom level [[BR]] (since !RemoteControl Version 1.4) ||
    92 || `max_zoom` || O || The maximum zoom level. For higher scales, the images of the maximum level is enlarged [[BR]] (since !RemoteControl Version 1.4) ||
    93 
    94 
    95 mandatory parameters: url
    96 optional parameters: title, type, cookies, min_zoom, max_zoom
    97 
    98 ==== Examples ====
    99 * TMS layer "osm" {{{http://tile.openstreetmap.org/{zoom}/{x}/{y}.png}}}
     85где
     86||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =||
     87|| `url` || О || URL запроса, включая шаблоны подстановки. Должен быть последним параметром. Всё после "&url=" интерпретируется как URL, даже если содержит символы "&".  ||
     88|| `title` || Н || Отображаемое имя слоя ||
     89|| `type` || Н || Тип слоя. Возможные значения: `wms`, `tms` и `bing` [[BR]] (с версии !RemoteControl 1.3) ||
     90|| `cookies` || Н ||  ||
     91|| `min_zoom` || Н || Минимальный масштаб [[BR]] (с версии !RemoteControl 1.4) ||
     92|| `max_zoom` || Н || Максимальный масштаб. Для более высоких уровней просто увеличивается изображение, доступное в максимальном масштабе [[BR]] (с версии !RemoteControl 1.4) ||
     93
     94
     95Обязательный параметр: url
     96Необязательные параметры: title, type, cookies, min_zoom, max_zoom
     97
     98==== Примеры ====
     99* TMS-слой "osm" {{{http://tile.openstreetmap.org/{zoom}/{x}/{y}.png}}}
    100100
    101101[http://localhost:8111/imagery?title=osm&type=tms&url=http://tile.openstreetmap.org/%7Bzoom%7D/%7Bx%7D/%7By%7D.png]
    102102
    103 * WMS layer "landsat" {{{http://irs.gis-lab.info/?layers=landsat&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox} }}}
     103* WMS-слой "landsat" {{{http://irs.gis-lab.info/?layers=landsat&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox} }}}
    104104[http://localhost:8111/imagery?title=landsat&type=wms&url=http://irs.gis-lab.info/?layers=landsat&SRS=%7Bproj%7D&WIDTH=%7Bwidth%7D&HEIGHT=%7Bheight%7D&BBOX=%7Bbbox%7D]
    105105
    106106=== {{{load_object}}} ===
    107107
    108 Instructs JOSM to download objects with a given id.
     108Указывает JOSM скачать объекты с заданным ID.
    109109{{{
    110110GET /load_object?new_layer=true|false&objects=...
    111111}}}
    112 where
    113 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    114 || `objects` || R || Comma separated list of object ids, e.g. "{{{n1234,n1235,w84,r958493}}}" ||
    115 || `new_layer` || O || If '''true''', downloads to a new layer ||
    116 || `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. ||
    117 || `relation_members` || O || If '''true''', downloads objects members of the relations as well. ||
    118 || `referrers` || O || If '''true''', downloads referrers of the object as well. I.e. parent relations, and for nodes, additionally, parent ways. (since r6782) ||
    119 
    120 ==== Example ====
     112где
     113||= **Параметр** =||= **Обязательные/необязательный** =||= **Значение** =||
     114|| `objects` || О || Разделённый запятыми список ID объектов, например, "{{{n1234,n1235,w84,r958493}}}" ||
     115|| `new_layer` || Н || Если '''true''', скачивает в новый слой ||
     116|| `addtags` || Н || Необязательный параметр для добавления тегов. Ключ и значение разделяются "=", а несколько тегов могут быть разделены вертикальной линией "|". См. [#addtags подробнее]. ||
     117|| `relation_members` || Н || Если '''true''', скачиваются также объекты, являющиеся участниками отношений. ||
     118|| `referrers` || Н || Если '''true''', скачиваются также ссылающиеся объекты, то есть родительские отношения, а для точек дополнительно родительские линии. (с r6782) ||
     119
     120==== Пример ====
    121121
    122122[http://localhost:8111/load_object?new_layer=true&objects=w106159509]
     
    124124=== {{{add_node}}} ===
    125125
    126 Instructs JOSM to create a new node at the given coordinates.
    127 
    128 **Note**: This action requires the permission ''Create new objects'' which is disabled by default.
     126Указывает JOSM создать новую точку с заданными координатами.
     127
     128**Примечание**: это действие требует права ''Создать новые объекты'', которое не включено в настройках по умолчанию.
    129129
    130130{{{
    131131GET /add_node?lon=...&lat=...
    132132}}}
    133 where
    134 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    135 || `lon` || R || The longitude of the node ||
    136 || `lat` || R || The latitude of the node ||
    137 || `addtags` since v1.5|| O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. ||
    138 
    139 ==== Example ====
     133где
     134||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =||
     135|| `lon` || О || Долгота точки ||
     136|| `lat` || О || Широта точки ||
     137|| `addtags` с v1.5|| Н || Необязательный параметр для добавления тегов. Ключ и значение разделяются "=", а несколько тегов могут быть разделены вертикальной линией "|". См. [#addtags подробнее]. ||
     138
     139==== Пример ====
    140140http://localhost:8111/add_node?lon=13.3&lat=53.2
    141141