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

Public Member Functions

void testHasSelfIntersectionsTrue ()
 
void testHasSelfIntersectionsFalse ()
 

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(77.29 29.07,77.42 29.26,77.27 29.31)"
 

Member Function Documentation

◆ testHasSelfIntersectionsFalse()

void testHasSelfIntersectionsFalse ( )
29  {
30  HasSelfIntersections instance=new HasSelfIntersections();
31  ValueFactory valfac=SimpleValueFactory.getInstance();
32  Value geo=valfac.createLiteral(testGeom2, WKTDatatype.LiteralIRI);
33  Value result=instance.evaluate(valfac, geo);
34  Value expResult=valfac.createLiteral(false);
35  assertEquals(expResult, result);
36  }
static final String testGeom2
Definition: HasSelfIntersectionsTest.java:16

References GeometricBinaryAttributeFunction.evaluate(), WKTDatatype.LiteralIRI, and HasSelfIntersectionsTest.testGeom2.

◆ testHasSelfIntersectionsTrue()

void testHasSelfIntersectionsTrue ( )
19  {
20  HasSelfIntersections instance=new HasSelfIntersections();
21  ValueFactory valfac=SimpleValueFactory.getInstance();
22  Value geo=valfac.createLiteral(testGeom, WKTDatatype.LiteralIRI);
23  Value result=instance.evaluate(valfac, geo);
24  Value expResult=valfac.createLiteral(true);
25  assertEquals(expResult, result);
26  }
static final String testGeom
Definition: HasSelfIntersectionsTest.java:14

References GeometricBinaryAttributeFunction.evaluate(), WKTDatatype.LiteralIRI, and HasSelfIntersectionsTest.testGeom.

Member Data Documentation

◆ 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(77.29 29.07,77.42 29.26,77.27 29.31)"
static