<div dir="ltr">Hi Team,<div><br></div><div>Just wondering if there is a python api which gets an offset line or parallel line (to both left and right sides) to a given line geometry in Qgis Python. I know there exists a processing tool called <a href="https://docs.qgis.org/3.16/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#offset-lines">Offsetlines</a> but need this similar functionality at geometry object level so that I can create offset lines only when needed based on my logic.</div><div><br></div><div>The only way now is that I can perform the Offset lines on the entire layer and then access the offset geometry if needed.</div><div><br></div><div>On other hand, shapely has <a href="https://shapely.readthedocs.io/en/stable/manual.html#object.parallel_offset">parallel_offset</a> but this needs conversion from shapely geometry to qgisgeometry.</div><div><br></div><div>Just looking for thoughts on this to optimize heavy geometry operations. Appreciate your help.</div><div><br></div><div>-Prem</div></div>