Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • For your first expression, to generate the vertices you could just use nodes_to_points($geometry,true) (second parameter specifies ignore_closing_node) And the second expression could be simplified to with_variable('dist', 0.01,collect_geometries(array_foreach(generate_series(1,num_points($geometry)-1), project(point_n($geometry,@element),@dist,radians(90+angle_at_vertex($geometry,@element-1)))))) - maybe modulate @dist by @map_scale to allow for scaled distance.
    – she_weeds
    Commented Feb 29 at 13:11
  • Thanks a lot @she_weeds for these improvements! Appreciate it very much. Indeed, obviously I should have not complicated things too much and simply used nodes_to_points
    – Babel
    Commented Feb 29 at 16:03