rdf4j-postgis  Version 0.1.0.0
WKTDatatype.WKBTextSRS Class Reference
Collaboration diagram for WKTDatatype.WKBTextSRS:

Public Member Functions

 WKBTextSRS (String wkbLiteral)
 
String getWkbText ()
 
String getSrsURI ()
 

Private Attributes

final String wkbText
 
final String srsURI
 

Constructor & Destructor Documentation

◆ WKBTextSRS()

WKBTextSRS ( String  wkbLiteral)
65  {
66  int startSRS = wkbLiteral.indexOf("<");
67  int endSRS = wkbLiteral.indexOf(">");
68 
69  //Check that both chevrons are located and extract SRS_URI name, otherwise default.
70  if (startSRS != -1 && endSRS != -1) {
71  srsURI = wkbLiteral.substring(startSRS + 1, endSRS);
72  wkbText = wkbLiteral.substring(endSRS + 1);
73 
74  } else {
75  srsURI = "";//SRS_URI.DEFAULT_WKT_CRS84;
76  wkbText = wkbLiteral;
77  }
78  }

References WKTDatatype.WKBTextSRS.srsURI, and WKTDatatype.WKBTextSRS.wkbText.

Member Function Documentation

◆ getSrsURI()

String getSrsURI ( )
84  {
85  return srsURI;
86  }

References WKTDatatype.WKBTextSRS.srsURI.

◆ getWkbText()

String getWkbText ( )
80  {
81  return wkbText;
82  }

References WKTDatatype.WKBTextSRS.wkbText.

Referenced by WKTDatatype.read().

Member Data Documentation

◆ srsURI

final String srsURI
private

◆ wkbText

final String wkbText
private