1 #include "csf.h" 2 #include "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 */ RputValueScale(MAP * map,CSF_VS valueScale)18CSF_VS RputValueScale( 19 MAP *map, /* map handle */ 20 CSF_VS valueScale) /* new value scale */ 21 { 22 CHECKHANDLE_GOTO(map, error); 23 if(! WRITE_ENABLE(map)) 24 { 25 M_ERROR(NOACCESS); 26 goto error; 27 } 28 map->raster.valueScale = valueScale; 29 return(valueScale); 30 error: return(VS_UNDEFINED); 31 } 32