difference method
Computes a Geometry
representing the closure of the point-set
of the points contained in this Geometry
that are not contained in
the other
Geometry.
If the result is empty, it is an atomic geometry with the dimension of the left-hand input.
Non-empty {@link GeometryCollection} arguments are not supported.
@param other the Geometry
with which to compute the
difference
@return a Geometry representing the point-set difference of this Geometry
with
other
@throws TopologyException if a robustness error occurs
@throws IllegalArgumentException if either input is a non-empty GeometryCollection
Implementation
Geometry difference(Geometry other) {
throw UnimplementedError("Not implemented yet"); // TODO
// // special case: if A.isEmpty ==> empty; if B.isEmpty ==> A
// if (this.isEmpty()) return OverlayOp.createEmptyResult(OverlayOp.DIFFERENCE, this, other, factory);
// if (other.isEmpty()) return copy();
//
// checkNotGeometryCollection(this);
// checkNotGeometryCollection(other);
// return SnapIfNeededOverlayOp.overlayOp(this, other, OverlayOp.DIFFERENCE);
}