| 1 | #cxx . . $ `<file>/frmts/pcraster/libcsf/pvalscal.c`/include "csf.h"cxx . . $ `<file>/frmts/pcraster/libcsf/csf.h`/ |
| 2 | #include "csfimpl.h"cxx . . $ `<file>/frmts/pcraster/libcsf/csfimpl.h`/ |
| 3 | |
| 4 | /* put new value scale |
| 5 | * RputValueScale changes the value scale |
| 6 | * of the map. |
| 7 | * |
| 8 | * returns |
| 9 | * new value scale or VS_UNDEFINED in case of an error. |
| 10 | * |
| 11 | * NOTE |
| 12 | * Note that there is no check if the cell representation |
| 13 | * is complaint. |
| 14 | * |
| 15 | * Merrno |
| 16 | * NOACCESS |
| 17 | */ |
| 18 | CSF_VScxx . . $ CSF_VS# RputValueScalecxx . . $ RputValueScale(9ed7a432853838e3).( |
| 19 | MAPcxx . . $ MAP# *map, /* map handle */ |
| 20 | CSF_VScxx . . $ CSF_VS# valueScale) /* new value scale */ |
| 21 | { |
| 22 | CHECKHANDLE_GOTOcxx . . $ `frmts/pcraster/libcsf/csfimpl.h:219:9`!(map, error); |
| 23 | if(! WRITE_ENABLEcxx . . $ `frmts/pcraster/libcsf/csfimpl.h:158:9`!(map)) |
| 24 | { |
| 25 | M_ERRORcxx . . $ `frmts/pcraster/libcsf/csfimpl.h:149:9`!(NOACCESScxx . . $ `frmts/pcraster/libcsf/csf.h:162:9`!); |
| 26 | goto error; |
| 27 | } |
| 28 | map->rastercxx . . $ MAP#raster..valueScalecxx . . $ CSF_RASTER_HEADER#valueScale. = valueScale; |
| 29 | return(valueScale); |
| 30 | error: return(VS_UNDEFINEDcxx . . $ VS_UNDEFINED.); |
| 31 | } |