Miscellaneous functions
Built-in functions
RiskScape comes with the following utility functions built-in. These functions allow you to build up more complex RiskScape expressions for use in Pipelines.
For more details, see riskscape function list --all
.
bookmark
Lookup data from a project by its bookmark id
is_exposed
Testing function - returns 1 if a second argument is present, can be used to test geospatial processing of a model without performing any specific hazard analysis
if_then_else
Evaluates the given boolean condition and returns one of the two values given, based on the result
is_not_null
Returns true if the given argument is not null, i.e. it contains a value
is_null
Returns true if the given argument is null, i.e. it contains no value
map
Apply an expression to each element in a list to produce a new list
not
Returns the negation of the given input
relation_to_coverage
Makes a relation into a coverage (Only possible for relations that include a geometry attribute)
starts_with
Returns true if the first
text
argument starts with second. False otherwisestr
Gives a
text
representation of the given argumentstr_length
Returns the length of a
text
argument