Opened 5 years ago
Closed 5 years ago
#18341 closed enhancement (wontfix)
Copy Memberships?
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | |
Keywords: | relation, multipolygon | Cc: |
Description
I wonder if a tool to "copy" relation memberships would be worth having.
Recent inspiration is from working with administrative boundaries for islands in Lake Huron. I, without realizing the consequences, used "Update Multipolygon", to add an island to several relations at once. JOSM proceeded to download all members of Lake Huron, at which time things got a little slow.
Thinking about other situations, when a highway is a member of multiple relations, it can get tedious to do something like add a short segment of dual carriageway (the easy way is to split a segment of the existing road for each side).
A tool that worked at the logical level and just added a way to the relations that the example way is part of would be helpful in both situations, as it is simple to reason about and so on.
Attachments (0)
Change History (4)
comment:1 by , 5 years ago
comment:3 by , 5 years ago
The primary benefit would be situations where a new way is clearly a member of multiple relations that an existing way is a member of. The tool would examine the existing way, note relation memberships/roles/positions and then insert a selected new way in those relations, with those roles, in similar positions (probably the next item in the relation).
The operation is working at the logical level or however you want to put it, not considering the interpretation of the data at all, just doing what the user says (add this new way to the relations that old way belongs to).
I'm ambivalent about the utility of it, it would be useful in fairly narrow situations, I just wanted to throw the idea out there.
Thanks for the performance hint and the improvement in the download all members.
comment:4 by , 5 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Complex, little benefit, too much work.
I don't understand what that tool would do.
You can select a new inner and "edit" the relation to add the new member without downloading all members. The problem: It is possible that you break the geometry of the multipolygon. Therefore we added a warning when this is done, see #18240
On the other hand, the "Update multipolygon" action might be improved to download the full relation instead of thousands of ways.
Anyhow, when working on such a huge multipolygon it is a good idea to give JOSM more heap memory with e.g. -Xmx4G to avoid performance problems.