1

In QGIS 3.22.4, I've a WFS layer with measurements of soil-depths (LayerFrom & LayerTo) in the attribute table. With the symbology-geometry generator, I've created scalable circles (geometry type = polygon, unit = pixels) in the center of each layer, next to the coordinates of the measurements. The expression looks like this:

make_circle(make_point($x,$y+0.25*("LayerFrom"+(("LayerTo"-"LayerFrom")/2))),2.4)

where $x is calculated x-coordinate; $y+0.25("LayerFrom"+(("LayerTo"-"LayerFrom")/2) is the y-coordinate with (pixel) offset based on depth and 2.4 is the size of the created geometry.

For measurement '09', it gives the following result:

enter image description here

Now in QGIS 3.28.4 the points are set in the upper-left corner of the screen. I cannot figure out what changed and how to fix this. It seems like the coordinates are not calculated correctly/being ignored. Does anyone recognizes the problem?

3
  • What do you get with a simple make_point($x,$y) ?
    – Kasper
    Mar 28 at 11:35
  • That gives no result. make_circle((make_point($x,$y)),1) does give me points on the upper left corner. Furthermore I figured out that the problem is not in QGIS 3.24.0, but does occur in 3.26.0. Mar 29 at 12:36
  • 2
    You can use x($geometry) instead of $x
    – Kasper
    Mar 29 at 16:47

1 Answer 1

1

Solution is to use x($geometry) instead of $x

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.