com.vividsolutions.jts.operation.overlay
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 |
---|---|
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)