public static Geometry difference ( Geometry geometry1 , Geometry substractor , SpatialReference spatialReference ) { OperatorDifference op = ( OperatorDifference ) factory . getOperator ( Operator . Type . Difference ) ; Geometry result = op . execute ( geometry1 , substractor , spatialReference , null ) ; return result ; }
Creates the difference of two geometries . The dimension of geometry2 has to be equal to or greater than that of geometry1 .