public abstract class OperatorIntersection extends Operator implements CombineOperator
Operator.Type
Constructor and Description |
---|
OperatorIntersection() |
Modifier and Type | Method and Description |
---|---|
abstract GeometryCursor |
execute(GeometryCursor inputGeometries,
GeometryCursor intersector,
SpatialReference sr,
ProgressTracker progressTracker)
Performs the Topological Intersection operation on the geometry set.
|
abstract GeometryCursor |
execute(GeometryCursor input_geometries,
GeometryCursor intersector,
SpatialReference sr,
ProgressTracker progress_tracker,
int dimensionMask)
Performs the Topological intersection operation on the geometry set.
|
abstract Geometry |
execute(Geometry inputGeometry,
Geometry intersector,
SpatialReference sr,
ProgressTracker progressTracker)
Performs the Topological Intersection operation on the geometry.
|
Operator.Type |
getType() |
static OperatorIntersection |
local() |
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
public Operator.Type getType()
public abstract GeometryCursor execute(GeometryCursor inputGeometries, GeometryCursor intersector, SpatialReference sr, ProgressTracker progressTracker)
inputGeometries
- is the set of Geometry instances to be intersected by the intersector.intersector
- is the intersector Geometry.
The operator intersects every geometry in the inputGeometries with the first geometry of the intersector and returns the result.public abstract GeometryCursor execute(GeometryCursor input_geometries, GeometryCursor intersector, SpatialReference sr, ProgressTracker progress_tracker, int dimensionMask)
input_geometries
- is the set of Geometry instances to be intersected by the intersector.intersector
- is the intersector Geometry. Only single intersector is used, therefore, the intersector.next() is called only once.sr
- The spatial reference is used to get tolerance value. Can be null, then the tolerance is not used and the operation is performed with
a small tolerance value just enough to make the operation robust.progress_tracker
- Allows to cancel the operation. Can be null.dimensionMask
- The dimension of the intersection. The value is either -1, or a bitmask mask of values (1 << dim).
The value of -1 means the lower dimension in the intersecting pair.
This is a fastest option when intersecting polygons with polygons or polylines.
The bitmask of values (1 << dim), where dim is the desired dimension value, is used to indicate
what dimensions of geometry one wants to be returned. For example, to return
multipoints and lines only, pass (1 << 0) | (1 << 1), which is equivalen to 1 | 2, or 3.public abstract Geometry execute(Geometry inputGeometry, Geometry intersector, SpatialReference sr, ProgressTracker progressTracker)
execute
in interface CombineOperator
inputGeometry
- is the Geometry instance to be intersected by the intersector.intersector
- is the intersector Geometry.sr
- The spatial reference to get the tolerance value from. Can be null, then the tolerance is calculated from the input geometries.progressTracker
- ProgressTracker instance that is used to cancel the lengthy operation. Can be null.public static OperatorIntersection local()
Copyright © 2018. All rights reserved.