Bug report #17533

Some expressions don't work with refactor fields algorithm

Added by Andreas Neumann almost 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Normal
Assignee:Matthias Kuhn
Category:Processing/QGIS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25430

Description

Some expresssions can't be used in the refactor fields algorithm. The preview in the expression editor works fine, but the resulting field in the output remains empty.

Example of expressions that don't work:

represent_value("some_field")

relation_aggregates:

--Anzahl Sonden. Feld anz_sonden
relation_aggregate(
  relation:='Erdwärmesonden',
  aggregate:='sum',
  expression:="anzahl_sonden" 
)

--Kumulierte Bohrlänge. Feld gesamt_bohrlaenge
relation_aggregate(
  relation:='Erdwärmesonden',
  aggregate:='sum',
  expression:="anzahl_sonden" * "bohrtiefe" 
)

Associated revisions

Revision cd0ba918
Added by Matthias Kuhn almost 7 years ago

Use layer context in RefactorFields algorithm

Fix #17533

History

#1 Updated by Anonymous almost 7 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#2 Updated by Giovanni Manghi almost 7 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF