Class GeoLineString

java.lang.Object
com.semedy.reasoner.api.symboltable.ExternalDataType
com.semedy.reasoner.symboltable.encoder.GeoLineString
All Implemented Interfaces:
GeoDatatype

public class GeoLineString extends ExternalDataType implements GeoDatatype
This datatype represents a geo line string.
Author:
Thomas Krekeler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    GeoLineString(org.locationtech.spatial4j.shape.jts.JtsGeometry lineString)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    directDecode(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 << 59
    long
    Encode the value of this as a long (if possible) delivers 0 if it is not possible
    byte
    return unique id of external data type (50..100)
    Returns a string representation of value.
    org.locationtech.spatial4j.shape.jts.JtsGeometry
    return the value
    boolean
     
    parse value of data type out of String

    Methods inherited from class com.semedy.reasoner.api.symboltable.ExternalDataType

    createValue, equals, getBytes, getKey, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeoLineString

      public GeoLineString(org.locationtech.spatial4j.shape.jts.JtsGeometry lineString)
    • GeoLineString

      public GeoLineString()
  • Method Details

    • getId

      public byte getId()
      Description copied from class: ExternalDataType
      return unique id of external data type (50..100)
      Specified by:
      getId in class ExternalDataType
      Returns:
      unique id of external data type
    • parse

      public ExternalDataType parse(String s)
      Description copied from class: ExternalDataType
      parse value of data type out of String
      Specified by:
      parse in class ExternalDataType
      Returns:
    • getString

      public String getString()
      Description copied from class: ExternalDataType
      Returns a string representation of value.
      This string representation must be parseable by "parse"
      Specified by:
      getString in interface GeoDatatype
      Specified by:
      getString in class ExternalDataType
    • getValue

      public org.locationtech.spatial4j.shape.jts.JtsGeometry getValue()
      Description copied from class: ExternalDataType
      return the value
      Specified by:
      getValue in interface GeoDatatype
      Specified by:
      getValue in class ExternalDataType
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface GeoDatatype
    • directEncode

      public long directEncode()
      Description copied from class: ExternalDataType
      Encode the value of this as a long (if possible) delivers 0 if it is not possible
      Specified by:
      directEncode in class ExternalDataType
      Returns:
    • directDecode

      public Object directDecode(long code)
      Description copied from class: ExternalDataType
      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 << 59
      Specified by:
      directDecode in class ExternalDataType