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

2017-06-26 Thread Jürgen E . Fischer
Hi Benjamin,

On Mon, 26. Jun 2017 at 09:22:01 +, fuenfer-koenigstein.benja...@swm.de 
wrote:
> 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?

https://github.com/qgis/QGIS/blob/master/src/core/expression/qgsexpressionfunction.cpp#L2650

IOW it's C++ and not a python.


Jürgen

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode


signature.asc
Description: PGP signature
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

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

2017-06-26 Thread Fuenfer-Koenigstein.Benjamin
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.neum...@carto.net]
Gesendet: Montag, 26. Juni 2017 11:29
An: Fuenfer-Koenigstein.Benjamin G-PRA
Cc: qgis-user@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.benja...@swm.de<mailto:fuenfer-koenigstein.benja...@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.neum...@carto.net]
Gesendet: Freitag, 23. Juni 2017 11:15
An: Fuenfer-Koenigstein.Benjamin G-PRA
Cc: qgis-user@lists.osgeo.org<mailto:qgis-user@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.benja...@swm.de<mailto:fuenfer-koenigstein.benja...@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@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user






___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

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

2017-06-26 Thread Neumann, Andreas
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.benja...@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.neum...@carto.net] 
> GESENDET: Freitag, 23. Juni 2017 11:15
> AN: Fuenfer-Koenigstein.Benjamin G-PRA
> CC: qgis-user@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.benja...@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@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

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

2017-06-26 Thread Fuenfer-Koenigstein.Benjamin
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.neum...@carto.net]
Gesendet: Freitag, 23. Juni 2017 11:15
An: Fuenfer-Koenigstein.Benjamin G-PRA
Cc: qgis-user@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.benja...@swm.de<mailto:fuenfer-koenigstein.benja...@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@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

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

2017-06-26 Thread Fuenfer-Koenigstein.Benjamin
Thank you very much Andreas!

Benjamin

Von: Neumann, Andreas [mailto:a.neum...@carto.net]
Gesendet: Freitag, 23. Juni 2017 11:15
An: Fuenfer-Koenigstein.Benjamin G-PRA
Cc: qgis-user@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.benja...@swm.de<mailto:fuenfer-koenigstein.benja...@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@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user