Add support of `segmentize` parameter to every symbolizer that supports simplification and smoothing
zdila opened this issue · comments
Add support of segmentize="<number>"
attribute to every symbolizer that supports simplification and smoothing. See https://postgis.net/docs/ST_Segmentize.html.
Reason: If a line is simplified then it looses too many points for its straight parts which causes it to become severely smoothed if smooth
is used.
Order should be:
- simplify
- segmentize
- smooth
Current workaround is to do it in SQL query (ST_Segmentize(ST_Simplify(geometry, 20), 200) AS geometry
) and then only use smooth
attribute.
Sample:
Without segmentization this linestring
becomes
which will be smoothed like this
With segmentization it would be something like this:
Problem with doing it in SQL is that parameterization (variables) can't be used there. An for other datasource types I see no other alternative at all.
Problem with doing it in SQL is that parameterization (variables) can't be used there.
Variables should actually be supported in SQL escaped by !
: !@variable!