Skip to content

Commit d0bc971

Browse files
committed
iD#9334 implement the slice operation
1 parent e3734d9 commit d0bc971

File tree

9 files changed

+1558
-0
lines changed

9 files changed

+1558
-0
lines changed

data/core.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,26 @@ en:
544544
parent_incomplete: This line cannot be split because a parent relation isn’t fully downloaded. Download the full relation.
545545
simple_roundabout: This line cannot be split because this roundabout is part of a larger relation. You must remove it from the relation first.
546546
connected_to_hidden: This can't be split because it is connected to a hidden feature.
547+
slice:
548+
title: Slice
549+
description: Divide the parent area into two areas along this line.
550+
key: X
551+
annotation: Sliced area into two.
552+
not_eligible: Cannot slice the area along the line here.
553+
cutline_tagged: Cannot slice using a line which has tagged values.
554+
cutline_nodes_tagged: Cannot slice using a line which has nodes that have tagged values.
555+
cutline_in_relation: Cannot slice using a line which is a member of a relation.
556+
cutline_nodes_in_relation: Cannot slice using a line which has nodes that are a member of a relation.
557+
cutline_connected_to_other: Cannot slice using a line which is connected to other ways.
558+
cutline_multiple_connection: Cannot slice using a line that connects to its parent area multiple times.
559+
cutline_outside_area: Cannot slice using a line outside the bounds of the area.
560+
cutline_intersects_inner_members: Cannot slice using a line that intersects other members of the parent area's relation.
561+
area_not_outer_relation_member: Cannot slice an area that is not an outer multipolygon area.
562+
cannot_split_area: Cannot split the parent area at the connecting points.
563+
cannot_split_area_annotated: "Cannot split the parent area at the connecting points. {annotation}"
564+
connected_to_hidden: This can't be sliced because it is connected to a hidden feature.
565+
area_member_not_downloaded: This can't be sliced because not all members of the parent area are downloaded.
566+
too_large: This can't be sliced because not enough of the line is visible.
547567
restriction:
548568
annotation:
549569
create: Added a turn restriction
@@ -2539,6 +2559,7 @@ en:
25392559
extract: "Extract a point from a feature"
25402560
extract_without_relations: "Extract a point from a feature, without extracting its relations"
25412561
split: "Split features at the selected points"
2562+
slice: "Split area along the selected line"
25422563
reverse: "Reverse selected features"
25432564
move: "Move selected features"
25442565
follow: "Follow a line or area"

modules/actions/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export { actionReverse } from './reverse';
3737
export { actionRevert } from './revert';
3838
export { actionRotate } from './rotate';
3939
export { actionScale } from './scale';
40+
export { actionSlice } from './slice';
4041
export { actionSplit } from './split';
4142
export { actionStraightenNodes } from './straighten_nodes';
4243
export { actionStraightenWay } from './straighten_way';

0 commit comments

Comments
 (0)