Bug report #20480

Incorrect descriptions for canvas functions

Added by Carolyn Krause over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Expressions
Affected QGIS version:3.4.1 Regression?:No
Operating System: Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:28300

Description

The canvas functions (canvasx, canvasy, canvaswidth and canvasheight) all have identical descriptions that refer to the CanvasWidth function. The syntax says the function accepts the argument 'units', but only argument defined is geometry.

This is the description included in the Expression Builder. The only difference between the four functions' descriptions is the title.

canvasx function
Return the width of the current canvas width (in pixel or map units)

Syntax
CanvasWidth('units')

Arguments
geometry → a valid geometry provided by expression commands 'myGeometry'.

Example
geomRedef('myLayer','myField','field1 > 1 and field2 = "foo"')
dbquery('myLayer','$geometry','field1 > 1 and field2 = "foo"')

History

#1 Updated by Harrissou Santanna over 5 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

These are functions from refFunctions plugins, not QGIS. Please report in the plugin repository (you can find it in the plugin description) instead.

Also available in: Atom PDF