NAME
RvalueScale2 - test if valuescale/datatype is a CSF version 2 value scale
SYNOPSIS
#include "csf.h"
int RvalueScale2(CSF_VS vs);
PARAMETERS
-
CSF_VS vs
-
value scale. ALL OF BELOW are accepted
Possible values for a
CSF_VS
are as follows:
* version 1 datatypes,
these can be returned by BUT NOT passed to a csf2 function
- VS_NOTDETERMINED - Version 1.
- VS_CLASSIFIED - Version 1.
- VS_CONTINUOUS - Version 1.
* version 2 datatypes
these two can be returned by or passed to a csf2 function
- VS_BOOLEAN - Boolean, always UINT1, values: 0,1 or MV_UINT1.
- VS_NOMINAL - Nominal, UINT1 or INT4.
- VS_ORDINAL - Ordinal, UINT1 or INT4.
- VS_SCALAR - Scalar, REAL4 or (maybe) REAL8.
- VS_DIRECTION - Directional REAL4 or (maybe) REAL8, -1 means no direction.
- VS_LDD - Local drain direction, always UINT1, values: 1-9 or MV_UINT1.
* this one CANNOT be returned by NOR passed to a csf2 function
- VS_UNDEFINED - Just some value different from the rest.
DESCRIPTION
RvalueScale2 tests if the map's value scale is a version
2 valuescale/datatype.
RETURNS
0 if the value is not in the above list, 1 if it does.