Opened 6 years ago
Closed 6 years ago
#17718 closed enhancement (fixed)
[PATCH] Make it easier to add specially treated relations to SplitWayCommand
Reported by: | taylor.smock | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 19.05 |
Component: | Core | Version: | |
Keywords: | split way command | Cc: |
Description
This patch should make it easier to add specially treated relations for splitting to its special case.
This was partially influenced by https://wiki.openstreetmap.org/wiki/Proposed_features/Connectivity -- it is probably a bad idea to break those relations, if they exist.
The current patch is mostly a refactor. It does not add the Connectivity relation type as a special case.
It adds a new static variable with currently existing special cases.
The static variable is a Map<String, String>, with the key being a restriction type and with the value being the specific case (currently, it should only be "restriction"). I've also moved the restriction specific code to its own method, to increase readability if another special case is found/created.
Attachments (1)
Change History (3)
by , 6 years ago
Attachment: | 17718.patch added |
---|
comment:1 by , 6 years ago
Keywords: | split way command added |
---|---|
Milestone: | → 19.05 |
Partial refactor of SplitWayCommand to allow for easier adding of specially treated relations