Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
866 B
Plaintext
Raw Permalink Normal View History

{
"name": "buffer_by_m",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
"description": "Creates a buffer along a line geometry where the buffer diameter varies according to the m-values at the line vertices.",
2022-01-13 08:56:17 -05:00
"arguments": [{
"arg": "geometry",
"description": "input geometry. Must be a (multi)line geometry with m values."
}, {
"arg": "segments",
"optional": true,
"default": "8",
"description": "number of segments to approximate quarter-circle curves in the buffer."
}],
"examples": [{
"expression": "buffer_by_m(geometry:=geom_from_wkt('LINESTRINGM(1 2 0.5, 4 2 0.2)'),segments:=8)",
"returns": "A variable width buffer starting with a diameter of 0.5 and ending with a diameter of 0.2 along the linestring geometry."
}],
"tags": ["line", "according", "values", "varies", "vertices", "buffer", "diameter"]
}