public abstract class GeometryFunction
extends java.lang.Object
Geometry
functions (which return a Geometry).
Provides metadata about the function.Constructor and Description |
---|
GeometryFunction(java.lang.String name,
int nArgs,
int nParams) |
GeometryFunction(java.lang.String name,
int nArgs,
int nParams,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
abstract com.vividsolutions.jts.geom.Geometry |
execute(com.vividsolutions.jts.geom.Geometry[] geom,
double[] param)
Exectute the function on the geometry(s) in the geom array.
|
java.lang.String |
getDescription() |
static GeometryFunction |
getFunction(java.util.Collection functions,
java.lang.String name) |
static GeometryFunction |
getFunction(java.lang.String name) |
static GeometryFunction[] |
getFunctions() |
int |
getGeometryArgumentCount() |
java.lang.String |
getName() |
static java.util.List |
getNames() |
static java.util.List |
getNames(java.util.Collection functions) |
int |
getParameterCount() |
java.lang.String |
toString() |
public GeometryFunction(java.lang.String name, int nArgs, int nParams)
public GeometryFunction(java.lang.String name, int nArgs, int nParams, java.lang.String description)
public static java.util.List getNames()
public static java.util.List getNames(java.util.Collection functions)
public static GeometryFunction getFunction(java.lang.String name)
public static GeometryFunction getFunction(java.util.Collection functions, java.lang.String name)
public static GeometryFunction[] getFunctions()
public java.lang.String getName()
public int getGeometryArgumentCount()
public int getParameterCount()
public java.lang.String getDescription()
public abstract com.vividsolutions.jts.geom.Geometry execute(com.vividsolutions.jts.geom.Geometry[] geom, double[] param)
geom
- the geometry argumentsparam
- any non-geometric arguments.public java.lang.String toString()
toString
in class java.lang.Object