17 if (args.length != 3) {
18 throw new ValueExprEvaluationException(getURI() +
" requires exactly 1 arguments, got " + args.length);
20 LiteralType l=LiteralRegistry.getLiteral(((Literal)args[0]).getDatatype().toString());
21 if(l instanceof RasterLiteral) {
22 GridCoverage geom=((RasterLiteral)l).read(args[0].stringValue());
23 Boolean type = Boolean.valueOf(args[1].stringValue());
24 Double zFactor = Double.valueOf(args[2].stringValue());
25 GridCoverage result =
modify(geom,type,zFactor);
26 return valueFactory.createLiteral(((RasterLiteral) l).unparse(result),((Literal)args[0]).getDatatype());
abstract GridCoverage modify(GridCoverage coverage, Boolean type, Double zFactor)