kiwi-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)
74  {
75  int startSRS = wkbLiteral.indexOf("<");
76  int endSRS = wkbLiteral.indexOf(">");
77 
78  //Check that both chevrons are located and extract SRS_URI name, otherwise default.
79  if (startSRS != -1 && endSRS != -1) {
80  srsURI = wkbLiteral.substring(startSRS + 1, endSRS);
81  wkbText = wkbLiteral.substring(endSRS + 1);
82 
83  } else {
84  srsURI = "<http://www.opengis.net/def/crs/OGC/1.3/CRS84>";
85  wkbText = wkbLiteral;
86  }
87  }

Member Function Documentation

◆ getSrsURI()

String getSrsURI ( )

◆ getWkbText()

String getWkbText ( )

References WKBDatatype.WKBTextSRS.wkbText.

Referenced by WKBDatatype.read().

89  {
90  return wkbText;
91  }

Member Data Documentation

◆ srsURI

final String srsURI
private

◆ wkbText

final String wkbText
private