|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.filter.expression.ExpressionAbstract
org.geotools.filter.DefaultExpression
org.geotools.filter.FunctionExpressionImpl
org.geotools.filter.AreaFunction
| Field Summary |
| Fields inherited from class org.geotools.filter.DefaultExpression |
expressionType, permissiveConstruction |
| Fields inherited from interface org.geotools.filter.expression.ExpressionType |
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_STRING, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT |
| Constructor Summary | |
AreaFunction()
Creates a new instance of AreaFunction |
|
| Method Summary | |
java.lang.Object |
evaluate(Feature feature)
Evaluates the expression against an instance of Feature. |
double |
getArea(com.vividsolutions.jts.geom.Geometry geometry)
Calculates and returns the area of the specified geometry. |
protected double |
getArea(com.vividsolutions.jts.geom.GeometryCollection geometryCollection1)
Returns the area of a GeometryCollection. |
protected double |
getArea(com.vividsolutions.jts.geom.MultiPolygon multiPolygon)
Returns the area of a MultiPolygon. |
protected double |
getArea(com.vividsolutions.jts.geom.Polygon polygon)
Returns the area of a Polygon. |
int |
getArgCount()
Returns the number of arguments this |
Expression[] |
getArgs()
Used by FilterVisitors to perform some action on this filter instance. |
java.util.Map |
getImplementationHints()
Returns the implementation hints. |
java.lang.String |
getName()
Gets the name of this function. |
double |
getPerimeter(com.vividsolutions.jts.geom.Geometry geometry)
Calculates and returns the perimeter of the specified geometry. |
protected double |
getPerimeter(com.vividsolutions.jts.geom.GeometryCollection geometryCollection)
Returns. |
protected double |
getPerimeter(com.vividsolutions.jts.geom.LineString lineString)
Returns the perimeter of a LineString. |
protected double |
getPerimeter(com.vividsolutions.jts.geom.MultiLineString multiLineString)
Returns the perimeter of a MultiLineString. |
protected double |
getperimeter(com.vividsolutions.jts.geom.MultiPolygon multiPolygon)
Returns the perimeter of a MultiPolygon. |
protected double |
getPerimeter(com.vividsolutions.jts.geom.Polygon polygon)
Returns the perimeter of a Polygon. |
short |
getType()
Gets the type of this expression. |
void |
setArgs(Expression[] args)
Sets the arguments to be evaluated by this function. |
| Methods inherited from class org.geotools.filter.FunctionExpressionImpl |
accept, getParameters, setName, setParameters |
| Methods inherited from class org.geotools.filter.DefaultExpression |
accept, evaluate, getValue, isAttributeExpression, isExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression |
| Methods inherited from class org.geotools.filter.expression.ExpressionAbstract |
eval |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.geotools.filter.expression.Expression |
accept, getValue |
| Methods inherited from interface org.opengis.filter.expression.Expression |
accept, evaluate |
| Methods inherited from interface org.opengis.filter.expression.Function |
getParameters, setName, setParameters |
| Constructor Detail |
public AreaFunction()
| Method Detail |
public short getType()
FunctionExpression
getType in interface FunctionExpressiongetType in class FunctionExpressionImplpublic java.lang.Object evaluate(Feature feature)
ExpressionFeature.
evaluate in interface Expressionevaluate in class DefaultExpressionfeature - Specified feature to use when returning value.
public int getArgCount()
FunctionExpression
getArgCount in interface FunctionExpressiongetArgCount in class FunctionExpressionImplpublic java.lang.String getName()
FunctionExpression
getName in interface FunctionExpressiongetName in class FunctionExpressionImplpublic void setArgs(Expression[] args)
FunctionExpression
setArgs in interface FunctionExpressionsetArgs in class FunctionExpressionImplpublic Expression[] getArgs()
getArgs in interface FunctionExpressiongetArgs in class FunctionExpressionImplpublic java.util.Map getImplementationHints()
getImplementationHints in interface FactorygetImplementationHints in class FunctionExpressionImplprotected double getArea(com.vividsolutions.jts.geom.GeometryCollection geometryCollection1)
geometryCollection1 - The GeometryCollection for which the
area is calulated.
protected double getPerimeter(com.vividsolutions.jts.geom.GeometryCollection geometryCollection)
geometryCollection - The GeometryCollection for which the
perimeter is calulated.
public double getArea(com.vividsolutions.jts.geom.Geometry geometry)
geometry - The Geometry to calculate the area of.
public double getPerimeter(com.vividsolutions.jts.geom.Geometry geometry)
geometry - The Geometry to calculate the area of.
protected double getArea(com.vividsolutions.jts.geom.MultiPolygon multiPolygon)
multiPolygon - the MultiPolygon for which the area is calculated.
protected double getperimeter(com.vividsolutions.jts.geom.MultiPolygon multiPolygon)
multiPolygon - the MultiPolygon for which the perimeter is
calculated.
protected double getArea(com.vividsolutions.jts.geom.Polygon polygon)
polygon - the Polygon for which the area is calculated.
protected double getPerimeter(com.vividsolutions.jts.geom.Polygon polygon)
polygon - the Polygon for which the perimeter is calculated.
protected double getPerimeter(com.vividsolutions.jts.geom.MultiLineString multiLineString)
multiLineString - the MultiLineString for which the perimeter is
calculated.
protected double getPerimeter(com.vividsolutions.jts.geom.LineString lineString)
lineString - the LineString for which the perimeter is calculated.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||