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

Public Member Functions

void testSRIDToWKT ()
 

Package Attributes

String epsg ="EPSG:4326"
 
Integer srid =4326
 
String epsg4326wkt ="GEODCRS[\"WGS 84\",DATUM[\"World Geodetic System 1984\",ELLIPSOID[\"WGS 84\", 6378137.0, 298.257223563, LENGTHUNIT[\"metre\", 1]]],PRIMEM[\"Greenwich\", 0.0, ANGLEUNIT[\"degree\", 0.017453292519943295]],CS[ellipsoidal, 2],AXIS[\"Latitude (B)\", north, ORDER[1]],AXIS[\"Longitude (L)\", east, ORDER[2]],ANGLEUNIT[\"degree\", 0.017453292519943295],SCOPE[\"Horizontal component of 3D system. Used by the GPS satellite navigation system and for NATO military geodetic surveying.\"],AREA[\"World.\"],BBOX[-90.00, -180.00, 90.00, 180.00],ID[\"EPSG\", 4326, \"9.7\", URI[\"urn:ogc:def:crs:EPSG:9.7:4326\"]]]"
 

Member Function Documentation

◆ testSRIDToWKT()

void testSRIDToWKT ( )
21  {
22  SRIDToWKT is3d=new SRIDToWKT();
23  ValueFactory valfac=SimpleValueFactory.getInstance();
24  Value geo=valfac.createLiteral(srid);
25  Value result=is3d.evaluate(valfac, geo);
26  Value expResult=valfac.createLiteral(epsg4326wkt);
27  assertEquals(expResult, result);
28  }
String epsg4326wkt
Definition: SRIDToWKTTest.java:18

References SRIDToWKTTest.epsg4326wkt, SRIDToWKT.evaluate(), and SRIDToWKTTest.srid.

Member Data Documentation

◆ epsg

String epsg ="EPSG:4326"
package

◆ epsg4326wkt

String epsg4326wkt ="GEODCRS[\"WGS 84\",DATUM[\"World Geodetic System 1984\",ELLIPSOID[\"WGS 84\", 6378137.0, 298.257223563, LENGTHUNIT[\"metre\", 1]]],PRIMEM[\"Greenwich\", 0.0, ANGLEUNIT[\"degree\", 0.017453292519943295]],CS[ellipsoidal, 2],AXIS[\"Latitude (B)\", north, ORDER[1]],AXIS[\"Longitude (L)\", east, ORDER[2]],ANGLEUNIT[\"degree\", 0.017453292519943295],SCOPE[\"Horizontal component of 3D system. Used by the GPS satellite navigation system and for NATO military geodetic surveying.\"],AREA[\"World.\"],BBOX[-90.00, -180.00, 90.00, 180.00],ID[\"EPSG\", 4326, \"9.7\", URI[\"urn:ogc:def:crs:EPSG:9.7:4326\"]]]"
package

◆ srid

Integer srid =4326
package