wiki:Ru:Help/Dialog/RelationEditor

Version 9 (modified by ak099, 7 years ago) ( diff )

--

Перевод не завершён

Если вам нужен полный список отношений в данных, загруженных в JOSM, смотрите Диалоговая панель «Отношения»
Отношения можно также редактировать с помощью щелчка правой кнопкой мыши в диалоговой панели «Теги/Участие»
Некоторые модули позволяют упростить редактирование отношений, а именно turnrestrictions или turnlanes

Окно редактора отношений

Окно редактора отношений — это один из многих способов создания, редактирования и удаления отношений. Это самый мощный инструмент в ядре JOSM.

Способы активации

Редактор отношений

Кнопки наверху

source:trunk/images/dialogs/refresh.png Обновить отношение из слоя данных (подробности см. ниже)
source:trunk/images/save.png Применить текущие изменения, сделанные в редакторе отношений, к данным. TODO: пояснить, когда использовать эту кнопку
source:trunk/images/dialogs/select.png Выделить текущее отношение, редактируемое в окне редактора отношений
source:trunk/images/duplicate.png Создать копию отношения и открыть её в другом окне редактора отношений
source:trunk/images/dialogs/delete.png Удалить текущее редактируемое отношение

Вкладка «Теги и участники»

Верхняя часть вкладки похожа на диалоговую панель «Теги/Участники», где можно ввести теги для отношения, а нижняя часть содержит список участников отношения слева и список текущих выделенных элементов справа.

relation editor screenshot

Верхняя половина: теги самого отношения

Наверху расположены ссылки на заготовки, соответствующие текущим тегам отношения, а ниже теги в таблице.

Заготовки, соответствующие отношению, можно открыть здесь (они более информативны, чем панель тегов). Щёлкните на ссылке, чтобы открыть полный вид заготовки, как обычно.

Три кнопки слева:

source:trunk/images/dialogs/add.png Добавить новый тег
source:trunk/images/dialogs/delete.png Удалить отмеченное в таблице тегов
source:trunk/images/pastetags.png Вставить теги из буфера

Примечание: проще изменять теги в диалоговой панели «Теги/Участие».

Нижняя половина, левая сторона: участники отношения

Слева в нижней половине окна расположена таблица участников отношения.

Таблица

В таблице показаны для каждого участника отношения:

  • слева — его роль в отношении
  • в середине — тип объекта в виде значка и некоего идентификатора (имя, ref или просто ID объекта)
    • двойной щелчок на строке с полным отношением откроет окно редактора отношений для данного отношения
  • справа — информация о соединениях линии с соседними участниками, полезная для проверки непротиворечивости, например, проверки того, что участники мультиполигона формируют замкнутый контур, или что маршрут является непрерывной линией без каких-либо разрывов в середине.
Контекстное меню в таблице

Разрыв обозначается красной точкой.

  • Приблизить - масштабирует до самого верхнего элемента из текущих выделенных участников
  • Масштабировать к разрыву (активна, только если выделен разрыв) - масштабирует до разрыва
  • Выбрать предыдущий разрыв
  • Выбрать следующий разрыв
Текущие выделенные участники

Selecting members in the #Table works as usual: hold Ctrl to select multiple items. Left click on the item to add/remove it from the selection.

On the right you can see example that only "K 8830" way was selected.

Buttons

The buttons on the left offer the following actions if appropriate:

source:trunk/images/dialogs/moveup.png Move the currently selected members up (Alt+up)
source:trunk/images/dialogs/movedown.png Move the currently selected members down (Alt+down)
source:trunk/images/dialogs/edit.png Open additional relation editors for the currently selected members of object type relation
source:trunk/images/dialogs/delete.png Remove the currently selected members from the relation (Alt+Delete)
source:trunk/images/dialogs/sort.png Sort the currently selected members (Alt+End)
source:trunk/images/dialogs/sort_below.png Sort the currently selected members and all members below (expert mode only)
source:trunk/images/dialogs/relation/reverse.png Reverse the order of the currently selected members
source:trunk/images/dialogs/relation/downloadincomplete.png Download all incomplete members (Alt+Home)
source:trunk/images/dialogs/relation/downloadincompleteselected.png Download selected incomplete members

Text field below the table used to set role to #Currentlyselectedmembers

Bottom half, right side, selection

In the lower right part is the selection list where currently selected objects in the current data set are shown. The list is basically a mirror of the Selection window. Objects with yellow background color are already member of the relation.

The buttons offer following actions:

source:trunk/images/dialogs/conflict/copystartright.svg Add all objects selected in the current data set before the first member
source:trunk/images/dialogs/conflict/copybeforecurrentright.svg Add all objects selected in the current data set before the first selected member
source:trunk/images/dialogs/conflict/copyaftercurrentright.svg Add all objects selected in the current data set after the last member selected member
source:trunk/images/dialogs/conflict/copyendright.svg Add all objects selected in the current data set after the last member
source:trunk/images/dialogs/relation/selectmembers.svg Select relation members in the member list which refer to objects in the current selection
source:trunk/images/dialogs/relation/selectprimitives.svg Select objects in the current data set for currently selected relation members in the member list
source:trunk/images/dialogs/relation/deletemembers.svg Remove all members referring to one of the selected objects in the current data set

Parent Relations tab

Reload button - will fetch all parent relation from API (parent relations list will be empty if there no parent relations).

Double click at any parent relation will open Relation editor with respective relation.

Note: only one parent relation is shown for relation 51560:

Child Relations tab

TODO: any details?

Drag and Drop support

The relation editor has an advanced drag and drop support. You can do the following actions:

  • reorder the members in the members list
  • move an object from the Selection window to the members list in the relation editor (with automatic role suggestion)
  • move an object from the members list of one relation editor instance to another relation editor instance
  • move an object from the members list of one relation editor instance to another relation editor instance from another layer*
  • move an object from the members list of one relation editor instance to another relation editor instance from another JOSM instance*
  • move an object from the members list of the relation editor or from the Selection window to an external text editor

* provided the objects are part of the dataset

Error and Warning Messages

Conflict in data when saving or applying a relation

A relation may be edited concurrently in the relation editor window and outside of the relation editor window. While the relation editor window for a relation is open you may for instance split a way the relation refers to. In this case, the relation is modified but the changes due to the way splitting are not immediately reflected in the relation editor window. You need to click on the source:trunk/images/dialogs/refresh.png refresh button to update the data in the relation editor. Anyhow JOSM keeps track of them and when you close the relation editor window or apply changes, without pressing the refresh button before, the following warning message is displayed:

It indicates that JOSM is aware of two incompatible versions of this relation. Since JOSM can't resolve the differences between these versions automatically, it proposes to create a conflict which you can resolve later using the Conflict Dialog.

A similar warning is the following:

It appears when you made changes in the relation and in the data layer and then click on the refresh button.

So the workflow should always be like this (if you want to do changes in the relation editor and the data layer at the same time, i.e. while the relation editor stays open):

  • After doing changes in the relation editor and before doing changes in the data layer press the source:trunk/images/save.png apply button.
  • After doing changes in the data layer and before doing changes in the relation editor press the source:trunk/images/dialogs/refresh.png refresh button.

Otherwise you will see the above warnings and end in a conflict.

Unsaved changes

The following warning appears when you make changes in the relation editor and do not press the Apply or OK button, but the Cancel button, the cross or Escape to close the window. unsaved changes warning

See also


Back to Main Help

Note: See TracWiki for help on using the wiki.