Package org.geotools.filter.function
Class NorthFix
- All Implemented Interfaces:
Expression
,Function
,SimplifiableFunction
,FunctionExpression
,Factory
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
FieldsModifier and TypeFieldDescriptionstatic final int
static final String
static FunctionName
static final Parameter<CoordinateReferenceSystem>
static final Parameter<CoordinateReferenceSystem>
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
Fields inherited from interface Expression
NIL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubclass should override, default implementation returns null.simplify
(FilterFactory ff, FeatureType featureType) Returns a simplified version of the function, or the function itself it cannot be be simplifiedMethods 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 Details
-
FUNCTION_NAME
- See Also:
-
RESULT
-
TARGET_CRS
-
POINT
-
ANGLE
-
SOURCE_CRS
-
FULL_CIRCLE
public static final int FULL_CIRCLE- See Also:
-
NAME
-
-
Constructor Details
-
NorthFix
public NorthFix()
-
-
Method Details
-
evaluate
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
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
-