I am new to Inkscape (though I have experience in other vector drawing software), and am facing the following problem. I am tracing a street map for a town using a bitmap from OpenStreetMap. I am using bezier curves for the roads. Different roads have different colors and sizes, shown in the figure by the green and yellow lines. I have also created a frame or bounding box for the map, shown in graphic as a rectangle with a gray fill.
My question is how you would tackle the following two issues in Inkscape.
I would like any roads that I have accidentally drawn over the bounding box to be cut off flush with the inner border of the bounding box, such as the green major road in the graphic above.
I would like any roads that overlap to be cut off flush with each other. For example, the yellow minor roads should be cut off flush where they intersect with the edge of the green major road in the graphic.
I have experimented with different combinations of Path functions (Cut, Division, Break Apart) but I haven't found what I'm looking for. I sort of have this idea that it's because one element is a shape, but I'm not having any success when dealing with two paths either. Perhaps I'm just approaching this the wrong way. Do I need to convert objects or strokes to paths, or use masks, or...?