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

Public Member Functions

void testClosestPoint ()
 

Static Public Attributes

static final String testPoint ="POINT (100 100)"
 
static final String testLineString ="LINESTRING (20 80, 98 190, 110 180, 50 75 )"
 

Member Function Documentation

◆ testClosestPoint()

void testClosestPoint ( )
20  {
21  ClosestPoint instance=new ClosestPoint();
22  ValueFactory valfac=SimpleValueFactory.getInstance();
23  Value geo=valfac.createLiteral(testPoint, WKTDatatype.LiteralIRI);
24  Value geo2=valfac.createLiteral(testLineString, WKTDatatype.LiteralIRI);
25  Value expResult=valfac.createLiteral(testPoint, WKTDatatype.LiteralIRI);
26  Value result=instance.evaluate(valfac, geo,geo2);
27  assertEquals(expResult, result);
28  }
static final String testLineString
Definition: ClosestPointTest.java:17
static final String testPoint
Definition: ClosestPointTest.java:15

References GeometricModifierFunction.evaluate(), WKTDatatype.LiteralIRI, ClosestPointTest.testLineString, and ClosestPointTest.testPoint.

Member Data Documentation

◆ testLineString

final String testLineString ="LINESTRING (20 80, 98 190, 110 180, 50 75 )"
static

◆ testPoint

final String testPoint ="POINT (100 100)"
static