public class OverlayOp extends GeometryGraphOperation
Geometry
s. The overlay
can be used to determine any boolean combination of the geometries.Modifier and Type | Field and Description |
---|---|
static int |
DIFFERENCE |
static int |
INTERSECTION
The spatial functions supported by this class.
|
static int |
SYMDIFFERENCE |
static int |
UNION |
arg, li, resultPrecisionModel
Modifier and Type | Method and Description |
---|---|
static Geometry |
createEmptyResult(int opCode,
Geometry a,
Geometry b,
GeometryFactory geomFact)
Creates an empty result geometry of the appropriate dimension,
based on the dimensions of the inputs.
|
PlanarGraph |
getGraph() |
Geometry |
getResultGeometry(int funcCode) |
protected void |
insertUniqueEdge(Edge e)
Insert an edge from one of the noded input graphs.
|
boolean |
isCoveredByA(Coordinate coord)
This method is used to decide if an L edge should be included in the result or not.
|
boolean |
isCoveredByLA(Coordinate coord)
This method is used to decide if a point node should be included in the result or not.
|
static boolean |
isResultOfOp(int loc0,
int loc1,
int opCode)
This method will handle arguments of Location.NONE correctly
|
static boolean |
isResultOfOp(Label label,
int opCode) |
static Geometry |
overlayOp(Geometry geom0,
Geometry geom1,
int opCode) |
getArgGeometry, setComputationPrecision
public static final int INTERSECTION
public static final int UNION
public static final int DIFFERENCE
public static final int SYMDIFFERENCE
public static boolean isResultOfOp(Label label, int opCode)
public static boolean isResultOfOp(int loc0, int loc1, int opCode)
public Geometry getResultGeometry(int funcCode)
public PlanarGraph getGraph()
protected void insertUniqueEdge(Edge e)
public boolean isCoveredByLA(Coordinate coord)
public boolean isCoveredByA(Coordinate coord)
public static Geometry createEmptyResult(int opCode, Geometry a, Geometry b, GeometryFactory geomFact)
Implements the following rules:
intersection
- result has the dimension of the lowest input dimension
union
- result has the dimension of the highest input dimension
difference
- result has the dimension of the left-hand input
symDifference
- result has the dimension of the highest input dimension
(since symDifference is the union of the differences).
opCode
- the overlay operation being performeda
- an input geometryb
- an input geometrygeomFact
- the geometry factory being used for the operationCopyright © 2016. All rights reserved.