Class GeoPoint
java.lang.Object
com.semedy.reasoner.api.symboltable.ExternalDataType
com.semedy.reasoner.symboltable.encoder.GeoPoint
- All Implemented Interfaces:
- GeoDatatype
This datatype represents a geo point.
- Author:
- Juergen Baier
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondirectDecode(long code) Decode the code (if possible)
 The encoding of the standard types looks as following:
 _direct = 1L << 63; indicates that the code is direct encoded
 _shortstring = 1L << 62; bit 62 must not be used for another encoding
 _inttype = 2L << 59
 _floattype = 3L << 59
 _booleantype = 4L << 59longEncode the value of this as a long (if possible) delivers 0 if it is not possiblebytegetId()return unique id of external data type (50..100)Returns a string representation of value.org.locationtech.spatial4j.shape.PointgetValue()return the valuebooleanisEmpty()parse value of data type out of StringMethods inherited from class com.semedy.reasoner.api.symboltable.ExternalDataTypecreateValue, equals, getBytes, getKey, hashCode, toString
- 
Constructor Details- 
GeoPointpublic GeoPoint(org.locationtech.spatial4j.shape.Point point) 
- 
GeoPointpublic GeoPoint()
 
- 
- 
Method Details- 
getIdpublic byte getId()Description copied from class:ExternalDataTypereturn unique id of external data type (50..100)- Specified by:
- getIdin class- ExternalDataType
- Returns:
- unique id of external data type
 
- 
parseDescription copied from class:ExternalDataTypeparse value of data type out of String- Specified by:
- parsein class- ExternalDataType
- Returns:
 
- 
getStringDescription copied from class:ExternalDataTypeReturns a string representation of value.
 This string representation must be parseable by "parse"- Specified by:
- getStringin interface- GeoDatatype
- Specified by:
- getStringin class- ExternalDataType
 
- 
getValuepublic org.locationtech.spatial4j.shape.Point getValue()Description copied from class:ExternalDataTypereturn the value- Specified by:
- getValuein interface- GeoDatatype
- Specified by:
- getValuein class- ExternalDataType
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- GeoDatatype
 
- 
directEncodepublic long directEncode()Description copied from class:ExternalDataTypeEncode the value of this as a long (if possible) delivers 0 if it is not possible- Specified by:
- directEncodein class- ExternalDataType
- Returns:
 
- 
directDecodeDescription copied from class:ExternalDataTypeDecode the code (if possible)
 The encoding of the standard types looks as following:
 _direct = 1L << 63; indicates that the code is direct encoded
 _shortstring = 1L << 62; bit 62 must not be used for another encoding
 _inttype = 2L << 59
 _floattype = 3L << 59
 _booleantype = 4L << 59- Specified by:
- directDecodein class- ExternalDataType
 
 
-