2015-12-21 20:58:57 +01:00
|
|
|
{
|
|
|
|
"name": "extrude",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2015-12-21 20:58:57 +01:00
|
|
|
"description": "Returns an extruded version of the input (Multi-)Curve or (Multi-)Linestring geometry with an extension specified by x and y.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "geometry",
|
|
|
|
"description": "a curve or linestring geometry"
|
|
|
|
}, {
|
|
|
|
"arg": "x",
|
|
|
|
"description": "x extension, numeric value"
|
|
|
|
}, {
|
|
|
|
"arg": "y",
|
|
|
|
"description": "y extension, numeric value"
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "geom_to_wkt(extrude(geom_from_wkt('LineString(1 2, 3 2, 4 3)'), 1, 2))",
|
|
|
|
"returns": "'Polygon ((1 2, 3 2, 4 3, 5 5, 4 4, 2 4, 1 2))'"
|
|
|
|
}, {
|
|
|
|
"expression": "geom_to_wkt(extrude(geom_from_wkt('MultiLineString((1 2, 3 2), (4 3, 8 3))'), 1, 2))",
|
|
|
|
"returns": "'MultiPolygon (((1 2, 3 2, 4 4, 2 4, 1 2)),((4 3, 8 3, 9 5, 5 5, 4 3)))'"
|
|
|
|
}],
|
|
|
|
"tags": ["curve", "version", "extension", "input", "specified", "extruded", "linestring", "multi"]
|
2015-12-21 20:58:57 +01:00
|
|
|
}
|