Class GeometryFunction
java.lang.Object
com.vividsolutions.jump.workbench.ui.plugin.analysis.GeometryFunction
A function object for
Geometry functions (which return a Geometry).
Provides metadata about the function.- Version:
- 1.0
- Author:
- Martin Davis
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryFunction(String name, int nArgs, int nParams) GeometryFunction(String name, int nArgs, int nParams, String description) -
Method Summary
Modifier and TypeMethodDescriptionabstract org.locationtech.jts.geom.Geometryexecute(org.locationtech.jts.geom.Geometry[] geom, double[] param) Exectute the function on the geometry(s) in the geom array.static GeometryFunctiongetFunction(String name) static GeometryFunctiongetFunction(Collection<GeometryFunction> functions, String name) static GeometryFunction[]intgetName()getNames()getNames(Collection<GeometryFunction> functions) inttoString()
-
Constructor Details
-
GeometryFunction
-
GeometryFunction
-
-
Method Details
-
getNames
-
getNames
-
getFunction
-
getFunction
-
getFunctions
-
getName
-
getGeometryArgumentCount
public int getGeometryArgumentCount() -
getParameterCount
public int getParameterCount() -
getDescription
-
execute
public abstract org.locationtech.jts.geom.Geometry execute(org.locationtech.jts.geom.Geometry[] geom, double[] param) Exectute the function on the geometry(s) in the geom array. The function can expect that the correct number of geometry arguments is present in the array. Integer parameters must be passed as doubles. If no result can be computed for some reason, null should be returned to indicate this to the caller. Exceptions may be thrown and must be handled by the caller.- Parameters:
geom- the geometry argumentsparam- any non-geometric arguments.- Returns:
- the geometry result, or null if no result could be computed.
-
toString
-