OverlayOp

object OverlayOp

Computes the geometric overlay of two {link Geometry}s. The overlay can be used to determine any boolean combination of the geometries.

Version

1.7

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def createEmptyResult(overlayOpCode: Int, a: Geometry, b: Geometry, geomFact: GeometryFactory): Geometry

Creates an empty result geometry of the appropriate dimension, based on the given overlay operation and the dimensions of the inputs. The created geometry is always an atomic geometry, not a collection.

Creates an empty result geometry of the appropriate dimension, based on the given overlay operation and the dimensions of the inputs. The created geometry is always an atomic geometry, not a collection.

The empty result is constructed using the following rules:

  • {link #INTERSECTION} - result has the dimension of the lowest input dimension

  • {link #UNION} - result has the dimension of the highest input dimension

  • {link #DIFFERENCE} - result has the dimension of the left-hand input

  • {link #SYMDIFFERENCE} - result has the dimension of the highest input dimension (since the symmetric Difference is the union of the differences).

Value Params
a

an input geometry

b

an input geometry

geomFact

the geometry factory being used for the operation return an empty atomic geometry of the appropriate dimension

overlayOpCode

the code for the overlay operation being performed

def isResultOfOp(label: Label, opCode: Int): Boolean
@nowarn
def isResultOfOp(loc0Arg: Int, loc1Arg: Int, overlayOpCode: Int): Boolean
def overlayOp(geom0: Geometry, geom1: Geometry, opCode: Int): Geometry

Concrete fields

val DIFFERENCE: Int

The code for the Difference overlay operation.

The code for the Difference overlay operation.

val INTERSECTION: Int

The code for the Intersection overlay operation.

The code for the Intersection overlay operation.

val SYMDIFFERENCE: Int

The code for the Symmetric Difference overlay operation.

The code for the Symmetric Difference overlay operation.

val UNION: Int

The code for the Union overlay operation.

The code for the Union overlay operation.