rdf4j-postgis  Version 0.1.0.0
BBOXBelowTest Class Reference
Collaboration diagram for BBOXBelowTest:

Public Member Functions

void testBBOXBelow ()
 
void testBBOXBelow1 ()
 

Static Public Attributes

static final String testGeom1 ="LINESTRING (1 4, 1 7)"
 
static final String testGeom2 ="LINESTRING (0 0, 4 2)"
 
static final String testGeom3 ="LINESTRING (6 1, 6 5)"
 
static final String testGeom4 ="LINESTRING (2 3, 5 6)"
 

Member Function Documentation

◆ testBBOXBelow()

void testBBOXBelow ( )
25  {
26  BBOXBelow instance=new BBOXBelow();
27  ValueFactory valfac=SimpleValueFactory.getInstance();
28  Value geo=valfac.createLiteral(testGeom1, WKTDatatype.LiteralIRI);
29  Value geo2=valfac.createLiteral(testGeom2, WKTDatatype.LiteralIRI);
30  Value result=instance.evaluate(valfac, geo,geo2);
31  Value expResult=valfac.createLiteral(false);
32  assertEquals(expResult, result);
33  }
static final String testGeom2
Definition: BBOXBelowTest.java:17
static final String testGeom1
Definition: BBOXBelowTest.java:15

References GeometricRelationBinaryFunction.evaluate(), WKTDatatype.LiteralIRI, BBOXBelowTest.testGeom1, and BBOXBelowTest.testGeom2.

◆ testBBOXBelow1()

void testBBOXBelow1 ( )
36  {
37  BBOXBelow instance=new BBOXBelow();
38  ValueFactory valfac=SimpleValueFactory.getInstance();
39  Value geo=valfac.createLiteral(testGeom2, WKTDatatype.LiteralIRI);
40  Value geo2=valfac.createLiteral(testGeom1, WKTDatatype.LiteralIRI);
41  Value result=instance.evaluate(valfac, geo,geo2);
42  Value expResult=valfac.createLiteral(true);
43  assertEquals(expResult, result);
44  }

References GeometricRelationBinaryFunction.evaluate(), WKTDatatype.LiteralIRI, BBOXBelowTest.testGeom1, and BBOXBelowTest.testGeom2.

Member Data Documentation

◆ testGeom1

final String testGeom1 ="LINESTRING (1 4, 1 7)"
static

◆ testGeom2

final String testGeom2 ="LINESTRING (0 0, 4 2)"
static

◆ testGeom3

final String testGeom3 ="LINESTRING (6 1, 6 5)"
static

◆ testGeom4

final String testGeom4 ="LINESTRING (2 3, 5 6)"
static