mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
13 lines
908 B
Plaintext
13 lines
908 B
Plaintext
{
|
|
"name": "tapered_buffer",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"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."}]
|
|
}
|
|
|