Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+0
Start Page
Index
History
Editing Ru:Help/Dialog/RelationEditor
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
[[TranslatedPages(revision=80,outdated=Перевод не завершён)]] [[PageOutline(2-10,Содержание)]] ''Если вам нужен полный список [Concepts/Object#Relations отношений] в данных, загруженных в JOSM, смотрите [Dialog/RelationList Диалоговая панель «Отношения»]''[[br]] ''Отношения можно также редактировать с помощью [wiki:Ru:Help/Menu/TagsMembershipMenu#Rightclickonitemsinmembershipspart щелчка правой кнопкой мыши] в [wiki:Ru:Help/Dialog/TagsMembership диалоговой панели «Теги/Участие»]''[[br]] ''Некоторые [wiki:Ru:Plugins модули] позволяют упростить [wiki:Ru:Help/Relations редактирование отношений], а именно [wiki:Ru:Help/Plugin/TurnRestrictions turnrestrictions] или [osmwiki:Relations/Proposed/turn_lanes#Plugin turnlanes]'' = Окно редактора отношений = Окно редактора отношений — это один из многих способов создания, редактирования и удаления отношений. Это самый мощный инструмент в ядре JOSM. == Способы активации == * В [wiki:Ru:Help/Dialog/RelationEditor редакторе отношений]: * [#Buttonsontop кнопка «Создать копию отношения»] открывает созданное отношение в редакторе отношений * [#Buttons кнопки в секции «Участники»] могут открыть один или несколько редакторов отношений * выполните [#Table двойной щелчок на полном отношении в таблице участников], чтобы открыть редактор отношений * выделите отношение(я), затем нажмите кнопку «Правка» во вкладке [#ParentRelationstab «Родительские отношения»], чтобы открыть один или несколько редакторов отношений * выполните двойной щелчок на элементе вкладки [#ParentRelationstab «Родительские отношения»], чтобы открыть редактор отношений * В [Help/Dialog/TagsMembership диалоговой панели «Теги/Участие»]: * если имеется таблица "Участник", то можно: * использовать[wiki:Ru:Help/Dialog/TagsMembership#rightclickmembership щелчок правой кнопкой] и выбрать «Правка» для открытия редактора отношений * выполнить [wiki:Ru:Help/Dialog/TagsMembership#doubleclickmembership двойной щелчок на элементе], чтобы открыть редактор отношений * В [wiki:Ru:Help/Dialog/RelationList Диалоговой панели «Отношения»]: * используйте кнопку «Создать новое отношение» для создания нового отношения и открытия его в редакторе отношений * выделите отношение (в диалоговой панели «Отношения»), нажмите вторую слева кнопку, чтобы открыть один или несколько редакторов отношений * кнопка «Создать копию этого отношения» откроет копию в редакторе отношений * В [wiki:Ru:Help/Dialog/SelectionList диалоговой панели «Выделение»]: * выделите отношение(я) (в диалоговой панели «Выделение»), используйте команду контекстного меню «Правка» для открытия редактора отношений * выполните двойной щелчок на отношении, чтобы открыть редактор отношений == Редактор отношений == === Кнопки наверху === #Buttonsontop || [[Image(source:trunk/images/dialogs/refresh.png)]] || Обновить отношение из слоя данных (подробности см. [#RelationChangedOutsideOfEditor ниже]) || || [[Image(source:trunk/images/save.png)]] || Применить текущие изменения, сделанные в редакторе отношений, к данным. TODO: пояснить, когда использовать эту кнопку || || [[Image(source:trunk/images/dialogs/select.png)]] || Выделить текущее отношение, редактируемое в окне редактора отношений || || [[Image(source:trunk/images/duplicate.png)]] || Создать копию отношения и открыть её в другом окне редактора отношений || || [[Image(source:trunk/images/dialogs/delete.png)]] || Удалить текущее редактируемое отношение || === Вкладка «Теги и участники» ===#TagMember Верхняя часть вкладки похожа на диалоговую панель [Dialog/TagsMembership «Теги/Участники»], где можно ввести теги для отношения, а нижняя часть содержит список участников отношения слева и список текущих выделенных элементов справа. [[Image(wiki:Help/Dialog/RelationEditor:relation_editor.png,right,margin-left=15)]] ==== Верхняя половина: теги самого отношения ==== Наверху расположены ссылки на заготовки, соответствующие текущим '''''тегам отношения''''', а ниже теги в таблице. Заготовки, соответствующие отношению, можно открыть здесь (они более информативны, чем панель тегов). [/wiki/Introduction#Leftmouseclickonrespectivepresetheadingwillopencompletepresetview Щёлкните на ссылке, чтобы открыть полный вид заготовки], как обычно. Три кнопки слева: || [[Image(source:trunk/images/dialogs/add.png)]] || Добавить новый тег || || [[Image(source:trunk/images/dialogs/delete.png)]] || Удалить отмеченное в таблице тегов || || [[Image(source:trunk/images/pastetags.png)]] || Вставить теги из буфера || Примечание: проще изменять теги в диалоговой панели [Dialog/TagsMembership «Теги/Участие»]. ==== Нижняя половина, левая сторона: участники отношения ==== Слева в нижней половине окна расположена таблица участников отношения. ===== Таблица ===== #Table В таблице показаны для каждого участника отношения: * слева — его роль в отношении * в середине — тип объекта в виде значка и некоего идентификатора (имя, ref или просто ID объекта) * двойной щелчок на строке с ''полным отношением'' откроет окно ''редактора отношений'' для данного отношения * справа — информация о соединениях линии с соседними участниками, полезная для проверки непротиворечивости, например, проверки того, что участники [wiki:Ru:Help/Concepts/Object#typemultipolygon мультиполигона] формируют замкнутый контур, или что маршрут является непрерывной линией без каких-либо разрывов в середине. ====== Контекстное меню в таблице ====== Разрыв обозначается красной точкой. * Приблизить - масштабирует до самого верхнего элемента из [#Currentlyselectedmembers текущих выделенных участников] * Масштабировать к разрыву (активна, только если выделен разрыв) - масштабирует до разрыва * Выбрать предыдущий разрыв * Выбрать следующий разрыв ===== Текущие выделенные участники ===== #Currentlyselectedmembers 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: || [[Image(source:trunk/images/dialogs/moveup.png)]] || Move the [#Currentlyselectedmembers currently selected members] up (**`Alt+up`**) || || [[Image(source:trunk/images/dialogs/movedown.png)]] || Move ''the currently selected members'' down (**`Alt+down`**) || || || || || [[Image(source:trunk/images/dialogs/edit.png)]] || Open additional relation editors for ''the currently selected members'' of object type relation || || [[Image(source:trunk/images/dialogs/delete.png)]] || Remove ''the currently selected members'' from the relation (**`Alt+Delete`**) || || || || || [[Image(source:trunk/images/dialogs/sort.png)]] || Sort ''the currently selected members'' (**`Alt+End`**) || || [[Image(source:trunk/images/dialogs/sort_below.png)]] || Sort ''the currently selected members'' and all members below ([ExpertMode expert mode] only) || || [[Image(source:trunk/images/dialogs/relation/reverse.png)]] || Reverse the order of the currently selected members || || || || || [[Image(source:trunk/images/dialogs/relation/downloadincomplete.png)]] || Download all incomplete members (**`Alt+Home`**) || || [[Image(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 [Dialog/SelectionList Selection window]. Objects with yellow background color are already member of the relation. The buttons offer following actions: || [[Image(source:trunk/images/dialogs/conflict/copystartright.svg)]] || Add all objects selected in the current data set before the first member || || [[Image(source:trunk/images/dialogs/conflict/copybeforecurrentright.svg,)]] || Add all objects selected in the current data set before the first selected member || || [[Image(source:trunk/images/dialogs/conflict/copyaftercurrentright.svg)]] || Add all objects selected in the current data set after the last member selected member || || [[Image(source:trunk/images/dialogs/conflict/copyendright.svg)]] || Add all objects selected in the current data set after the last member || || || || || [[Image(source:trunk/images/dialogs/relation/selectmembers.svg)]] || Select relation members in the member list which refer to objects in the current selection || || [[Image(source:trunk/images/dialogs/relation/selectprimitives.svg)]] || Select objects in the current data set for currently selected relation members in the member list || || || || || [[Image(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 [osmwww:relation/51560 relation 51560]: [[Image(wiki:Help/Dialog/RelationEditor:relation 51560.png,nolink,50%)]] === Child Relations tab === TODO: any details? [[Image(wiki:Help/Dialog/RelationEditor:child relations of 1152180.png,nolink,50%)]] == 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 [wiki:Help/Dialog/SelectionList 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 ===#RelationChangedOutsideOfEditor {{{ #!html <a name="RelationChangedOutsideOfEditor"> }}} 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 [[Image(source:trunk/images/dialogs/refresh.png,middle)]] 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: [[Image(wiki:Help/Dialog/RelationEditor:warning-conflict-in-data.png)]] It indicates that JOSM is aware of two incompatible [Concepts/Object#Objectversions versions] of this relation. Since JOSM can't resolve the differences between these versions automatically, it proposes to create a [Concepts/Conflict conflict] which you can [Concepts/Conflict#Resolvingconflicts resolve] later using the [Dialog/Conflict Conflict Dialog]. A similar warning is the following: [[Image(wiki:Help/Dialog/RelationEditor:relation_conflict.png)]] 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 [[Image(source:trunk/images/save.png)]] apply button.''' * '''After doing changes in the data layer and before doing changes in the relation editor press the [[Image(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. [[Image(wiki:Help/Dialog/RelationEditor:relation_editor_unsaved_changes_warning.png,900)]] == See also == * [[Image(source:trunk/images/dialogs/relationlist.png,20,middle)]] [Dialog/RelationList Relations window] - all loaded relations are listed here * [Concepts/Object Object] - detailed explanation what ''relation'' is * [[Help/Relations]] - steps how to create parent relations, edit parent/child relations and so on * [[Concepts/Conflict]] ---- Back to [wiki:/Help Main Help]
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.