Package org.locationtech.jtstest.geomop
Class LoggingGeometryOperation
java.lang.Object
org.locationtech.jtstest.geomop.LoggingGeometryOperation
- All Implemented Interfaces:
GeometryOperation
A
GeometryOperation
which logs
the input and output from another
GeometryOperation
.
The log is sent to System.out
.- Author:
- mbdavis
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
-
Constructor Details
-
LoggingGeometryOperation
public LoggingGeometryOperation() -
LoggingGeometryOperation
-
-
Method Details
-
getReturnType
Description copied from interface:GeometryOperation
Gets the class of the return type of the given operation.- Specified by:
getReturnType
in interfaceGeometryOperation
- Parameters:
opName
- the name of the operation- Returns:
- the class of the return type of the specified operation
-
invoke
Description copied from interface:GeometryOperation
Invokes an operation on aGeometry
.- Specified by:
invoke
in interfaceGeometryOperation
- Parameters:
opName
- name of the operationgeometry
- the geometry to processargs
- the arguments to the operation (which may be typed as Strings)- Returns:
- the result of the operation
- Throws:
Exception
- if some error was encountered trying to find or process the operation
-