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

Public Member Functions

void testFurthestCoordinate ()
 

Static Public Attributes

static final String testGeom ="LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)"
 
static final String testGeom2 ="LINESTRING(5 5 ,10 10)"
 
static final String result ="POINT(5 5)"
 

Member Function Documentation

◆ testFurthestCoordinate()

void testFurthestCoordinate ( )
21  {
22  FurthestCoordinate instance=new FurthestCoordinate();
23  ValueFactory valfac=SimpleValueFactory.getInstance();
24  Value geo=valfac.createLiteral(testGeom, WKTDatatype.LiteralIRI);
25  Value geo2=valfac.createLiteral(testGeom2, WKTDatatype.LiteralIRI);
26  Value resultt=instance.evaluate(valfac, geo,geo2);
27  Value expResult=valfac.createLiteral(result, WKTDatatype.LiteralIRI);
28  assertEquals(expResult, resultt);
29  }
static final String testGeom
Definition: FurthestCoordinateTest.java:14
static final String testGeom2
Definition: FurthestCoordinateTest.java:16
static final String result
Definition: FurthestCoordinateTest.java:18

References GeometricModifierFunction.evaluate(), WKTDatatype.LiteralIRI, FurthestCoordinateTest.result, FurthestCoordinateTest.testGeom, and FurthestCoordinateTest.testGeom2.

Member Data Documentation

◆ result

final String result ="POINT(5 5)"
static

◆ testGeom

final String testGeom ="LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)"
static

◆ testGeom2

final String testGeom2 ="LINESTRING(5 5 ,10 10)"
static