QGIS/resources/function_help/json/triangular_wave_randomized
Nyall Dawson 9496367e61 [feature][expressions] Add expressions for creating triangular/square/curved waves
along a geometry

The new expression functions are:
- triangular_wave: Constructs triangular waves along the boundary of a geometry.
- square_wave: Constructs square/rectangular waves along the boundary of a geometry
- wave: Constructs rounded (sine-like) waves along the boundary of a geometry
- triangular_wave_randomized: Constructs randomized triangular waves along the boundary of a geometry
- square_wave_randomized: Constructs randomized square/rectangular waves along the boundary of a geometry.
- wave_randomized: Constructs randomized curved (sine-like) waves along the boundary of a geometry
2021-10-23 05:17:07 +10:00

18 lines
1008 B
Plaintext

{
"name": "triangular_wave_randomized",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Constructs randomized triangular waves along the boundary of a geometry.",
"arguments": [
{"arg":"geometry","description":"a geometry"},
{"arg":"min_wavelength","description":"minimum wavelength of waves"},
{"arg":"max_wavelength","description":"maximum wavelength of waves"},
{"arg":"min_amplitude","description":"minimum amplitude of waves"},
{"arg":"max_amplitude","description":"maximum amplitude of waves"},
{"arg":"seed","optional": true, "default": "0", "description":"specifies a random seed for generating waves. If the seed is 0, then a completely random set of waves will be generated."}
],
"examples": [
{ "expression":"triangular_wave_randomized(geom_from_wkt('LineString(0 0, 10 0)'), 2, 3, 0.1, 0.2)", "returns":"Randomly sized triangular waves with wavelengths between 2 and 3 and amplitudes between 0.1 and 0.2 along the linestring"}
]
}