[Qgis-user] Python Code of functions in expression builder

Fuenfer-Koenigstein.Benjamin at swm.de Fuenfer-Koenigstein.Benjamin at swm.de
Mon Jun 26 02:33:37 PDT 2017


Hi Andreas,

it can be found in expression builder, Group „Geometry”, function name “project”. Syntax: project(point, distance, bearing).

Regards
Benjamin

Von: Neumann, Andreas [mailto:a.neumann at carto.net]
Gesendet: Montag, 26. Juni 2017 11:29
An: Fuenfer-Koenigstein.Benjamin G-PRA
Cc: qgis-user at lists.osgeo.org
Betreff: Re: AW: [Qgis-user] Python Code of functions in expression builder


Hi Benjamin,

What ist the exact name of the expression? Are you sure it is a Python expression? If it is a built-in expression it is most likely implemented in C++.

Andreas

On 2017-06-26 11:22, Fuenfer-Koenigstein.Benjamin at swm.de<mailto:Fuenfer-Koenigstein.Benjamin at swm.de> wrote:
Hi,

I'm looking for the python code of the geometry function „project" that shifts points by azimuth and distance. I couldn't find this in .qgis2/python/plugins/refFunctions (Windows). Any idea where I can find it?

Thanks!

Regards
Benjamin

Von: Neumann, Andreas [mailto:a.neumann at carto.net]
Gesendet: Freitag, 23. Juni 2017 11:15
An: Fuenfer-Koenigstein.Benjamin G-PRA
Cc: qgis-user at lists.osgeo.org<mailto:qgis-user at lists.osgeo.org>
Betreff: Re: [Qgis-user] Python Code of functions in expression builder


Hi Benjamin,

Of course they can be found in the Python folder ;-)

Go to .qgis2 (in Windows in the user profile folder, in Linux/OSX in the home folder), then to "python/plugins/qgsexpressionsplus" or "python/plugins/refFunctions".

Self-written custom Python functions end up in "python/expressions" and your chosen filename when you created the expressions.

Andreas

On 2017-06-23 10:55, Fuenfer-Koenigstein.Benjamin at swm.de<mailto:Fuenfer-Koenigstein.Benjamin at swm.de> wrote:
Hi all,

I'm looking for the folder where the python files of functions available in expression builder are installed. I want to get some inspiration for a special custom function I have to write. Thanks for any help!

Best regards
Benjamin


_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170626/c1242173/attachment.html>


More information about the Qgis-user mailing list