Permalink
Show file tree
Hide file tree
1 comment
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix caching of aggregate values with @parent
And add a test for referencedVariables
- Loading branch information
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7a05a7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-kuhn , we're getting there!😉 @parent is now properly updated as the code iterates through features. However, "FIELD" values (in the filter parameter expression) aren't updated when iterating through features, breaking stuff like aggregate('my_layer','count',$id,"my_layer_field" = attribute(@parent,"my_parent_field")).
Here's an updated test project (http://hub.qgis.org/attachments/10505/parent_v2.zip) which should help narrow things down. The test project labels two polygons using three aggregate calls. The third one is built on a "field" = attribute(@parent,"parent_field) which fails for the 2nd polygon. The failure is due to "field" not being updated with the 2nd polygon's values.
Screenshot:
