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:GeometryOperationGets the class of the return type of the given operation.- Specified by:
getReturnTypein interfaceGeometryOperation- Parameters:
opName- the name of the operation- Returns:
- the class of the return type of the specified operation
-
invoke
Description copied from interface:GeometryOperationInvokes an operation on aGeometry.- Specified by:
invokein 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
-