buildCovariableFromraster build and return a covariable