Standards /

WCPS-Manual / castExpr

The castExpr element specifies a unary induced operation, that is: to change the range type of the coverage while leaving all other properties unchanged.

NOTE Depending on the input and output types result possibly may suffer from a loss of accuracy through data type conversion.


C1 be a coverageExpr
t be a range field type name.


for any coverageExpr C2
where C2 is one of

C2 = ( t ) 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 cannot be cast to the type specified.


the result range type of the following expression will be char, i.e., 8 bit:

(char) ( C / 2 )