public class GeometryFunctionOperation extends Object implements GeometryOperation
Geometry
.
This class allows overriding Geometry methods
or augmenting them
with functions defined in a GeometryFunctionRegistry
.Constructor and Description |
---|
GeometryFunctionOperation() |
GeometryFunctionOperation(GeometryFunctionRegistry registry) |
Modifier and Type | Method and Description |
---|---|
Class |
getReturnType(String opName)
Gets the class of the return type of the given operation.
|
Result |
invoke(String opName,
Geometry geometry,
Object[] args)
Invokes an operation on a
Geometry . |
public GeometryFunctionOperation()
public GeometryFunctionOperation(GeometryFunctionRegistry registry)
public Class getReturnType(String opName)
GeometryOperation
getReturnType
in interface GeometryOperation
opName
- the name of the operationpublic Result invoke(String opName, Geometry geometry, Object[] args) throws Exception
GeometryOperation
Geometry
.invoke
in interface GeometryOperation
opName
- name of the operationgeometry
- the geometry to processargs
- the arguments to the operation (which may be typed as Strings)Exception
- if some error was encountered trying to find or process the operationCopyright © 2017. All rights reserved.