I had a layer, and I did one offset of it. But the problem is that now I have a offset but the lines are separated.
How can I join them in Python? Because I read about several function as snap, snapped line, snapped geometry, merge, etc.
I wanted to know how can join theses lines, but with Python code.
In the above image you can see the lines after offset, and the next was the code.
import processing
layer = iface.activeLayer()
parameters = { 'DISTANCE' : 5, #offset of 5 meters
'INPUT' : layer,
'JOIN_STYLE' : 1,
'MITER_LIMIT' : 1,
'OUTPUT' : 'TEMPORARY_OUTPUT',
'SEGMENTS' : 8 }
processing.runAndLoadResults('qgis:offsetline',
parameters)


