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

Public Member Functions

void testSridGetAxis1Name ()
 

Static Public Attributes

static final String testPoint ="<http://www.opengis.net/def/crs/EPSG/0/4326> POINT(1 2 3)"
 

Member Function Documentation

◆ testSridGetAxis1Name()

void testSridGetAxis1Name ( )
20  {
21  try {
22  CRS.forCode("EPSG:4326");
23  } catch (NoSuchAuthorityCodeException e) {
24  // TODO Auto-generated catch block
25  e.printStackTrace();
26  } catch (FactoryException e) {
27  // TODO Auto-generated catch block
28  e.printStackTrace();
29  }
30  SridGetAxis1Name is3d=new SridGetAxis1Name();
31  ValueFactory valfac=SimpleValueFactory.getInstance();
32  Value geo=valfac.createLiteral(testPoint,WKTDatatype.LiteralIRI);
33  Value result=is3d.evaluate(valfac, geo);
34  Value expResult=valfac.createLiteral("X");
35  assertEquals(expResult, result);
36  }
static final String testPoint
Definition: SridGetAxis1NameTest.java:17

References GeometricStringExportFunction.evaluate(), WKTDatatype.LiteralIRI, and SridGetAxis1NameTest.testPoint.

Member Data Documentation

◆ testPoint

final String testPoint ="<http://www.opengis.net/def/crs/EPSG/0/4326> POINT(1 2 3)"
static