I've written an expression to update node layers coordinates to coordinate values from a survey file with the following expression:
geom_from_wkt('POINT('||$x||' '||$y||' '||$z||')')
(replacing $x
, $y
and $z
with the field names of the northing, easting and elevation values) This works great for moving the nodes to the proper coordinates.
Now I'm trying to use the same logic to update the start and end points of a line layer but I can't seem to get the proper syntax, what I was expecting to work is:
geom_from_wkt('start_point('||$x||' '||$y||')')
geom_from_wkt('end_point('||$x||' '||$y||')')
(again, replacing $x
and $y
with the attribute field names)
I'm not getting any errors, but the geometry is also not updating... I can only assume the expression is not written correctly? or is there a better way to accomplish this task?
start_point
only works withgeometry
of lines andgeom_from_wkt
only withwkt-geometry
. Shouldnt it rather be something likestart_point(geom_from_wkt('Linestring('||"x1"||' '||"y1"||','||"x2"||' '||"y2"||')'))
? Still not really sure what you are trying to do...