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

Public Member Functions

void testIntersectionMatrix ()
 

Static Public Attributes

static final String testGeom ="LINESTRING(743238 2967416,743238 2967450,743265 2967450, 743265.625 2967416,743238 2967416)"
 
static final String testGeom2 ="MULTIPOINT (0 1, 1 0, 2 1)"
 
static final String testGeom3 ="<http://www.opengis.net/def/crs/EPSG/0/27700> MULTIPOINT (10 40, 40 30, 20 20, 30 10)"
 
static final String testGeom4 ="<http://www.opengis.net/def/crs/EPSG/0/4326> MULTIPOINT (10 40, 40 30, 20 20, 30 10)"
 

Member Function Documentation

◆ testIntersectionMatrix()

void testIntersectionMatrix ( )
24  {
25  IntersectionMatrix instance=new IntersectionMatrix();
26  ValueFactory valfac=SimpleValueFactory.getInstance();
27  Value geo=valfac.createLiteral(testGeom3, WKTDatatype.LiteralIRI);
28  Value geo2=valfac.createLiteral(testGeom3, WKTDatatype.LiteralIRI);
29  Value result=instance.evaluate(valfac, geo,geo2);
30  Value expResult=valfac.createLiteral("0FFFFFFF2");
31  assertEquals(expResult, result);
32  }
static final String testGeom3
Definition: IntersectionMatrixTest.java:19

References GeometricRelationStringFunction.evaluate(), WKTDatatype.LiteralIRI, and IntersectionMatrixTest.testGeom3.

Member Data Documentation

◆ testGeom

final String testGeom ="LINESTRING(743238 2967416,743238 2967450,743265 2967450, 743265.625 2967416,743238 2967416)"
static

◆ testGeom2

final String testGeom2 ="MULTIPOINT (0 1, 1 0, 2 1)"
static

◆ testGeom3

final String testGeom3 ="<http://www.opengis.net/def/crs/EPSG/0/27700> MULTIPOINT (10 40, 40 30, 20 20, 30 10)"
static

◆ testGeom4

final String testGeom4 ="<http://www.opengis.net/def/crs/EPSG/0/4326> MULTIPOINT (10 40, 40 30, 20 20, 30 10)"
static