rdf4j-postgis  Version 0.1.0.0
WKBDatatype.WKBTextSRS Class Reference
Collaboration diagram for WKBDatatype.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)
77  {
78  int startSRS = wkbLiteral.indexOf("<");
79  int endSRS = wkbLiteral.indexOf(">");
80 
81  //Check that both chevrons are located and extract SRS_URI name, otherwise default.
82  if (startSRS != -1 && endSRS != -1) {
83  srsURI = wkbLiteral.substring(startSRS + 1, endSRS);
84  wkbText = wkbLiteral.substring(endSRS + 1);
85 
86  } else {
87  srsURI = "<http://www.opengis.net/def/crs/OGC/1.3/CRS84>";
88  wkbText = wkbLiteral;
89  }
90  }

References WKBDatatype.WKBTextSRS.srsURI, and WKBDatatype.WKBTextSRS.wkbText.

Member Function Documentation

◆ getSrsURI()

String getSrsURI ( )
96  {
97  return srsURI;
98  }

References WKBDatatype.WKBTextSRS.srsURI.

◆ getWkbText()

String getWkbText ( )
92  {
93  return wkbText;
94  }

References WKBDatatype.WKBTextSRS.wkbText.

Referenced by WKBDatatype.read().

Member Data Documentation

◆ srsURI

final String srsURI
private

◆ wkbText

final String wkbText
private