Re: [QGIS-Developer] Offset lines via qgis python

2021-06-09 Thread Ujaval Gandhi
This particular implementation is C++ (see the .cpp extension on the file). But the C++ and Python API is almost identical, so you can use the C++ code as a reference for your PyQGIS code. [image: Logo] Ujaval Gandhi Spatial Thoughts mobile: +91-8095684687 email: uja.

Re: [QGIS-Developer] Offset lines via qgis python

2021-06-09 Thread Prem Kumar
Hi Ujaval, Thank you very much for pointing that out. That serves my purpose. In fact, I had initially searched for a python implementation of the Offsetlines processing tool but did not get it. Just a quick question, how do we trace whether the processing tool implementation is in python or c++?

Re: [QGIS-Developer] Offset lines via qgis python

2021-06-09 Thread Ujaval Gandhi
You can look at the implementation of offsetline algorithm and you'll notice that it uses geometry.offsetCurve(). You can do the same in your code. [image: Logo]

[QGIS-Developer] Offset lines via qgis python

2021-06-09 Thread Prem Kumar
Hi Team, 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 Offsetlines