Standards /

WCPS-Manual / unaryArithmeticExpr

The unaryArithmeticExpr element specifies a unary induced arithmetic operation.

Let

C1 be a coverageExpr
where

for all range fields r ∈ rangeFieldNames(C1): r is numeric.

Then,

for any coverageExpr C2
where C2 is one of

Cplus = + C1
Cminus = - C1

C2 is defined as follows:

The server shall respond with an exception if one of the coverage's grid cell values or its null values is negative.

Example

The following coverage expression evaluates to a float-type coverage where each cell value contains the square root of the sum of the corresponding source coverages' values.

sqrt( C + D )