[Qgis-user] geometry generator - unexpected results
David Fawcett
david.fawcett at gmail.com
Thu Apr 16 11:01:01 PDT 2020
I am trying to use a geometry generator to accomplish the "hand-drawn" line
style.
Some great recent examples by:
Klas Karlsson
https://twitter.com/klaskarlsson/status/1249333750451879937
Hamish:
https://polemic.nz/2019/11/18/foss4g-qgis-geometry-generators/
I am using the code below from the blog post by Hamish in QGIS 3.12:
make_line(
array_foreach(
generate_series(
0, length($geometry), 100
),
translate(
line_interpolate_point($geometry, @element),
rand(-10, 10),
rand(-10, 10)
)
)
)
Here is an image of what the results look like:
https://github.com/fawcett/examples/blob/master/lines.png
The line geometries are in blue, and the geometry generator output is in black.
Can anyone suggest what is going wrong?
Thank you,
David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200416/6400f1ed/attachment.html>
More information about the Qgis-user
mailing list