rdf4j-postgis  Version 0.1.0.0
RastFromHexWKB Class Reference
Inheritance diagram for RastFromHexWKB:
Collaboration diagram for RastFromHexWKB:

Public Member Functions

String getURI ()
 
GridCoverage construct (String input)
 
Value evaluate (ValueFactory valueFactory, Value... args) throws ValueExprEvaluationException
 

Member Function Documentation

◆ construct()

GridCoverage construct ( String  input)

Reimplemented from RasterConstructorFunction.

17  {
18  return HexWKBRastDatatype.INSTANCE.read(input);
19  }

References HexWKBRastDatatype.INSTANCE, and HexWKBRastDatatype.read().

◆ evaluate()

Value evaluate ( ValueFactory  valueFactory,
Value...  args 
) throws ValueExprEvaluationException
inherited
16  {
17  if (args.length != 1) {
18  throw new ValueExprEvaluationException(getURI() + " requires exactly 1 arguments, got " + args.length);
19  }
20  LiteralType l=LiteralRegistry.getLiteral(((Literal)args[0]).getDatatype().toString());
21  String geomString = args[0].stringValue();
22  GridCoverage result = construct(geomString);
23  return valueFactory.createLiteral(((RasterLiteral) l).unparse(result),((Literal)args[0]).getDatatype());
24  }

References RasterConstructorFunction.construct(), and LiteralRegistry.getLiteral().

Referenced by RastFromCoverageJSONTest.testRastFromCoverageJSON(), and RastFromWKBTest.testRastFromWKB().

◆ getURI()

String getURI ( )
12  {
13  return POSTGIS.st_rastFromHexWKB.stringValue();
14  }

References POSTGIS.st_rastFromHexWKB.