Class EPSGCodeFinder.FloatCondition

java.lang.Object
org.apache.sis.referencing.factory.sql.EPSGCodeFinder.Condition
org.apache.sis.referencing.factory.sql.EPSGCodeFinder.FloatCondition
Enclosing class:
EPSGCodeFinder

private static final class EPSGCodeFinder.FloatCondition extends EPSGCodeFinder.Condition
A condition for a floating point value with a tolerance.
  • Constructor Details

    • FloatCondition

      FloatCondition(String column, double value)
      Creates a new condition for the given value.
  • Method Details

    • appendToWhere

      boolean appendToWhere(StringBuilder buffer, boolean isNext)
      Appends a condition with a numeric value assumed a linear distance in metres. The tolerance threshold is 1 centimetre for a planet of the size of Earth.
      Overrides:
      appendToWhere in class EPSGCodeFinder.Condition
      Parameters:
      buffer - where to append the SQL fragment.
      isNext - whether to append a "AND" keyword before the condition.
      Returns:
      whether a SQL fragment has been appended.
    • appendToOrderBy

      void appendToOrderBy(StringBuilder buffer)
      Appends an ordering condition.
      Overrides:
      appendToOrderBy in class EPSGCodeFinder.Condition
      Parameters:
      buffer - where to append the SQL fragment.