public class PreparedGeometryOperation extends Object implements GeometryOperation
GeometryOperation
which uses PreparedGeometry
s
for applicable operations.
This allows testing correctness of the PreparedGeometry implementation.
This class can be used via the -geomop command-line option or by the <geometryOperation> XML test file setting.
Constructor and Description |
---|
PreparedGeometryOperation() |
PreparedGeometryOperation(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 PreparedGeometryOperation()
public PreparedGeometryOperation(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, org.locationtech.jts.geom.Geometry, java.lang.Object[])
Copyright © 2018. All rights reserved.