If I understand correctly, you can use the following expression. Either as a *Geometry Generator* symbol layer (on Layer B) or by using the *Geometry by Expression* geoprocessing tool if you wish to create a new layer with the results (used also on Layer B). ```expression -- find the intersection of the line layers and assign it to a variable with_variable('i', intersection( aggregate('Layer A', 'collect', @geometry), @geometry ), -- get the distance of the intersection along Layer B's geometry with_variable('dist_along', line_locate_point(@geometry, @i), -- generate the line that spans 100 m either side of the intersection line_substring(@geometry, @dist_along - 100, @dist_along + 100) ) ) ``` [![enter image description here][1]][1] [1]: https://i.sstatic.net/GjwnLQEu.png