Package org.geotools.filter.function
Class FilterFunction_minimumDiameter
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- FilterFunction_minimumDiameter
-
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
public class FilterFunction_minimumDiameter extends FunctionExpressionImpl
A FilterFunction that expects a Geometry and returns it's minimum diameter.- Author:
- Jared Erickson
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionName
NAME
-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description FilterFunction_minimumDiameter()
Create a new FilterFunction_minimumDiameter instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
Calculate the Geometry's minimum diameter.-
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
-
NAME
public static FunctionName NAME
-
-
Method Detail
-
evaluate
public Object evaluate(Object feature)
Calculate the Geometry's minimum diameter.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Parameters:
feature
- The feature should be a Geometry- Returns:
- The minimum diameter Geometry
- Throws:
IllegalArgumentException
- if the feature is not a Geometry
-
-