Package org.geotools.filter.function
Class NorthFix
-
- All Implemented Interfaces:
Expression
,Function
,SimplifiableFunction
,FunctionExpression
,Factory
public class NorthFix extends FunctionExpressionImpl implements SimplifiableFunction
Function that allows correcting a heading angle based on the north direction in the point and CRS provided. Useful to perform mapping with vectors (wind, currents) on CRSs that do not typically have the north up (e.g. Polar Stereographic).
-
-
Field Summary
Fields Modifier and Type Field Description static Parameter<Double>
ANGLE
static int
FULL_CIRCLE
static String
FUNCTION_NAME
static FunctionName
NAME
static Parameter<Point>
POINT
static Parameter<Double>
RESULT
static Parameter<CoordinateReferenceSystem>
SOURCE_CRS
static Parameter<CoordinateReferenceSystem>
TARGET_CRS
-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description NorthFix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
Subclass should override, default implementation returns null.Expression
simplify(FilterFactory ff, FeatureType featureType)
Returns a simplified version of the function, or the function itself it cannot be be simplified-
Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Field Detail
-
FUNCTION_NAME
public static final String FUNCTION_NAME
- See Also:
- Constant Field Values
-
TARGET_CRS
public static final Parameter<CoordinateReferenceSystem> TARGET_CRS
-
SOURCE_CRS
public static final Parameter<CoordinateReferenceSystem> SOURCE_CRS
-
FULL_CIRCLE
public static final int FULL_CIRCLE
- See Also:
- Constant Field Values
-
NAME
public static FunctionName NAME
-
-
Method Detail
-
evaluate
public Object evaluate(Object feature)
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- default implementation returns null
-
simplify
public Expression simplify(FilterFactory ff, FeatureType featureType)
Description copied from interface:SimplifiableFunction
Returns a simplified version of the function, or the function itself it cannot be be simplified- Specified by:
simplify
in interfaceSimplifiableFunction
- Parameters:
ff
- The filter factory to use for creating new expressions (mandatory, non null)featureType
- The target feature type, if available,null
otherwise- Returns:
- The simplified expression
-
-