I'm new to GIS software and I've been introduced to QGIS 2.18 as part of my internship.
I was tasked with creating new styles for the company's maps, however I've encountered a problem with one of the requested styles.
I was to create a style for a line that would create a buffer for a line and then apply a gradient depending on the angle of the line (This part I manage to get using geometry generator). However, it returns the line buffers as an oval and I would like it to be flat ended (take a shape as a rectangle).
I am aware that v.buffer.distance allows for creation of flat-ends but I'm hoping for the same result but by using geometry generator so that it could be saved as a style.
The picture above shows what I've managed to create the buffer($geometry,0.05) vs the bounds method in Using QGIS Geometry Generator to get rectangle from point?
To specify again, I want to rectangularize(?) the result I got from buffer($geometry, 0.05)
bounds
method might be useful depending on how you created your geometries :)