[QGIS-Developer] Ellipse marker calculated offset

Nyall Dawson nyall.dawson at gmail.com
Wed Jan 2 23:10:38 PST 2019


On Thu, 3 Jan 2019 at 06:03, Chris Crook <ccrook at linz.govt.nz> wrote:
>
> Hi and Happy New Year
>
> I am trying to define a symbology using an ellipse marker with a calculated offset.  The ellipse marker contains an offset field defined by x and y values.  These can be set using an field calculator, which looks like it should evaluate to an array with x and y offsets.  However this doesn't seem to be working.  I've tried using an array expression, array(10.0,0.0), and a string '[10.0,0.0]'.  But neither seem to work - the ellipse marker is not offset.  If I enter x an y values manually as 10.0 and 0.0 the ellipse is offset.
>
> I have the same issue using a field value for the offset of a label - entering this as an expression with array(10.0,0.0) doesn't create an offset.
>
> Does anyone know how to enter these values as an expression?

They must be a string value, e.g. "1,2".

Nyall


More information about the QGIS-Developer mailing list