Class OverlayValidatedGeometryOperation

  • All Implemented Interfaces:
    GeometryOperation

    public class OverlayValidatedGeometryOperation
    extends Object
    implements GeometryOperation
    A GeometryOperation which validates the result of overlay operations. 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.

    In order to eliminate the need to specify the precise result of an overlay, this class forces the final return value to be GEOMETRYCOLLECTION EMPTY.

    This class can be used via the -geomop command-line option or by the <geometryOperation> XML test file setting.

    Author:
    Martin Davis