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

Public Member Functions

void testAsTextRound ()
 

Static Public Attributes

static final String testGeometry ="LINESTRING(1.32453 2.65655, 4.96254 5.43341)"
 

Member Function Documentation

◆ testAsTextRound()

void testAsTextRound ( )
17  {
18  AsTextRound instance=new AsTextRound();
19  ValueFactory valfac=SimpleValueFactory.getInstance();
20  Value geo=valfac.createLiteral(testGeometry, WKTDatatype.LiteralIRI);
21  Value result=instance.evaluate(valfac, geo);
22  Value expResult=valfac.createLiteral("LINESTRING (1.32 2.66, 4.96 5.43)");
23  assertEquals(expResult, result);
24  }
static final String testGeometry
Definition: AsTextRoundTest.java:14

References GeometricStringExportIntegerFunction.evaluate(), WKTDatatype.LiteralIRI, and AsTextRoundTest.testGeometry.

Member Data Documentation

◆ testGeometry

final String testGeometry ="LINESTRING(1.32453 2.65655, 4.96254 5.43341)"
static