How can I measure/calculate the curvature of a linestring?
I need just a boolean value: is curved or is not curved.
At the moment, I don't find a working strategy for that.
Some of many (somewhat hacky) solutions using the field calculator:
use one of the expressions (returning
true when line is curved)
area( convex_hull( $geometry ) ) > 0 AND area( convex_hull( $geometry ) ) IS NOT NULL
or, probably better performing
length( $geometry ) > distance( start_point( $geometry ), end_point( $geometry ) )
or many more...