mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
27 lines
1001 B
Plaintext
27 lines
1001 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."
|
|
}],
|
|
"tags": ["varies", "buffer", "line", "diameter", "length"]
|
|
}
|