I have a polyline layer, for each feature I want to create a mid point of the polyline (which is easy enough to do) and then generate a polyline of a certain distance at a right angle of the feature. I have used the code from the following question which has generated a line but not what I was expecting.
What I would like to generate is something along these lines (in purple). The red is what the code generated.
How can I achieve this?
