public class BufferValidatedGeometryOperation extends Object implements GeometryOperation
GeometryOperation
which validates the results of the
Geometry
buffer() method.
If an invalid result is found, an exception is thrown (this is the most
convenient and noticeable way of flagging the problem when using the TestRunner).
All other Geometry methods are executed normally.
This class can be used via the -geomop command-line option or by the <geometryOperation> XML test file setting.
Constructor and Description |
---|
BufferValidatedGeometryOperation() |
BufferValidatedGeometryOperation(GeometryMethodOperation chainOp)
Creates a new operation which chains to the given
GeometryMethodOperation
for non-intercepted methods. |
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 the named operation
|
public BufferValidatedGeometryOperation()
public BufferValidatedGeometryOperation(GeometryMethodOperation chainOp)
GeometryMethodOperation
for non-intercepted methods.chainOp
- the operation to chain topublic 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
invoke
in interface GeometryOperation
opName
- geometry
- args
- Exception
GeometryOperation.invoke(java.lang.String, com.vividsolutions.jts.geom.Geometry, java.lang.Object[])
Copyright © 2017. All Rights Reserved.