I have multilines (vector) with two SVG symbols. I use marker placement with interval and offset along the line. How can I set that if a symbol is some distance from the end of a line (symbolised by circle) then a symbol is not visualised?
The first step would be to transform the multi-parts lines to single part lines.
Then, you can use the geometry generator in the style to create new shorter lines and to style them as you wish.
In the style panel, click the green plus sign and choose it to be a
geometry generator, select the type type as
Generate the shorter lines using the following expression. Adjust the distance from start / end to suit your needs. Note that these distances are expressed in CRS unit (in the example below, they are in meters).
line_substring( $geometry, 50, length($geometry)-50)
You can then apply your svg styling on this generate lines.
On the example below:
- green lines: original lines
- black lines: reduced lines
- symbols: applied on the reduced lines