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
A condition for a floating point value with a tolerance.
-
Field Summary
Fields inherited from class org.apache.sis.referencing.factory.sql.EPSGCodeFinder.Condition
column, NAME, values
-
Constructor Summary
ConstructorsConstructorDescriptionFloatCondition
(String column, double value) Creates a new condition for the given value. -
Method Summary
Modifier and TypeMethodDescription(package private) void
appendToOrderBy
(StringBuilder buffer) Appends an ordering condition.(package private) boolean
appendToWhere
(StringBuilder buffer, boolean isNext) Appends a condition with a numeric value assumed a linear distance in metres.Methods inherited from class org.apache.sis.referencing.factory.sql.EPSGCodeFinder.Condition
toString
-
Constructor Details
-
FloatCondition
FloatCondition(String column, double value) Creates a new condition for the given value.
-
-
Method Details
-
appendToWhere
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 classEPSGCodeFinder.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
Appends an ordering condition.- Overrides:
appendToOrderBy
in classEPSGCodeFinder.Condition
- Parameters:
buffer
- where to append the SQL fragment.
-