QGIS/resources/function_help/json/tapered_buffer
Nyall Dawson 6ca327072a [FEATURE] Add expression functions for tapered and variable
width buffers

Adds:
- tapered_buffer
- buffer_by_m

expression functions. These expose the same functionality as the
equivalent processing algorithms but for use in expressions
such as geometry generators.
2018-05-01 06:16:01 +10:00

12 lines
877 B
Plaintext

{
"name": "tapered_buffer",
"type": "function",
"description": "Creates a buffer along a line geometry where the buffer diameter varies evenly over the length of the line.",
"arguments": [ {"arg":"geometry","description":"input geometry. Must be a (multi)line geometry."},
{"arg":"start_width","description":"width of buffer at start of line,"},
{"arg":"end_width","description":"width of buffer at end of line."},
{"arg":"segments","optional":true,"default":"8","description":"number of segments to approximate quarter-circle curves in the buffer."}],
"examples": [ { "expression":"tapered_buffer(geometry:=geom_from_wkt('LINESTRING(1 2, 4 2)'),start_width:=1,end_width:=2,segments:=8)", "returns":"A tapered buffer starting with a diameter of 1 and ending with a diameter of 2 along the linestring geometry."}]
}