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

Public Member Functions

void testMinimumRectangle ()
 

Static Public Attributes

static final String testPolygon ="POLYGON ((0 0, 1 0, 1 1, 0.5 3.2e-4, 0 0))"
 

Member Function Documentation

◆ testMinimumRectangle()

void testMinimumRectangle ( )
17  {
18  MinimumRectangle instance=new MinimumRectangle();
19  ValueFactory valfac=SimpleValueFactory.getInstance();
20  Value geo=valfac.createLiteral(testPolygon, WKTDatatype.LiteralIRI);
21  Value result=instance.evaluate(valfac, geo);
22  Value expResult=valfac.createLiteral("POLYGON ((0 0, 0.5 -0.5, 1.5 0.5, 1 1, 0 0))",WKTDatatype.LiteralIRI);
23  assertEquals(expResult, result);
24  }
static final String testPolygon
Definition: MinimumRectangleTest.java:14

References GeometricUnaryFunction.evaluate(), WKTDatatype.LiteralIRI, and MinimumRectangleTest.testPolygon.

Member Data Documentation

◆ testPolygon

final String testPolygon ="POLYGON ((0 0, 1 0, 1 1, 0.5 3.2e-4, 0 0))"
static