kiwi-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)
57  {
58  int startSRS = wkbLiteral.indexOf("<");
59  int endSRS = wkbLiteral.indexOf(">");
60 
61  //Check that both chevrons are located and extract SRS_URI name, otherwise default.
62  if (startSRS != -1 && endSRS != -1) {
63  srsURI = wkbLiteral.substring(startSRS + 1, endSRS);
64  wkbText = wkbLiteral.substring(endSRS + 1);
65 
66  } else {
67  srsURI = "";//SRS_URI.DEFAULT_WKT_CRS84;
68  wkbText = wkbLiteral;
69  }
70  }

Member Function Documentation

◆ getSrsURI()

String getSrsURI ( )

◆ getWkbText()

String getWkbText ( )

References WKTDatatype.WKBTextSRS.wkbText.

Referenced by WKTDatatype.read().

72  {
73  return wkbText;
74  }

Member Data Documentation

◆ srsURI

final String srsURI
private

◆ wkbText

final String wkbText
private