Bug report #21740
Aggregate processing tool - Group by expression ($geometry) doesn't work
|Affected QGIS version:||3.6.0||Regression?:||No|
|Operating System:||Windows 10 Professional||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29555|
As the title states, when attempting to aggregate by geometry the results are inconclusive.
I tested the following expressions on a selection set of 2 identical polygons and they all produced the same result set of 2 polygons:
I was able to get the correct results by simply creating a virtual field with the same expression (ex. geom_to_wkt($geometry)) and the tool produced the correct result (single polygon with the agg fields).