-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregate functions in Field Calculator in modeller #25198
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Francisco Pérez Sampayo (Francisco Pérez Sampayo) I can confirm this bug on 2.18.14 |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Francisco Pérez Sampayo (Francisco Pérez Sampayo) I just test this bug with master and works ok without problem on aggregates.
|
Author Name: Luigi Pirelli (@luipir) trying to replicate on linux |
Author Name: Luigi Pirelli (@luipir) changed assignee trying to speedup review or merge of proposed PR
|
Author Name: Jean-Louis Stanus (Jean-Louis Stanus) Hello, I tested with nightly 2.18.16-5 (installed with osgeo4w). It looks not solved. I created
The first works, the second with the same layer not because refactor with aggregate is used in second (or more) place UPDATE: yes, typo. Fixed ;)
|
Author Name: Luigi Pirelli (@luipir) I'll give a check, tnx for the report I suppose it's a typo... you where talking about 2.18.16-5 is it right?
|
Author Name: Luigi Pirelli (@luipir) Hi Jean-Louis The "test merge and aggregate" model depend on saga (that I've not installed) do you mind to prepare a test case that use ONLY base algorithm not depending by third party backends? I've error reading the algorithm because lack of SAGS. all this to say that your report seems related to something not related with the issue that has been fixed. I leave the issue closed until a reproducible and related test case can confirm that the fix is not working. regards |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Danielle G (Danielle G)
Original Redmine Issue: 17300
Affected QGIS version: 2.18.14
Redmine category:processing/modeller
Assignee: Luigi Pirelli
The aggregate functions in field calculator cannot calculate on a layer which is not saved to the project model.
For example, when trying to do a series of aggregate (e.g. mean, sum) calculations in the model builder, the first one (working directly off of a layer saved in the model) will work, while any subsequent calculations, based on temporary layers within the model builder calculations returns "An error occurred while evaluating the calculation string: Cannot use aggregate function in this context".
(I haven't posted issues before, hopefully this is enough detail. It is very easy to replicate -simply try to do a couple of aggregate functions in series in model builder)
The text was updated successfully, but these errors were encountered: