com.vividsolutions.jts.operation.overlay
Class OverlayOp
Computes the overlay of two
Geometry
s. The overlay
can be used to determine any boolean combination of the geometries.
DIFFERENCE
public static final int DIFFERENCE
INTERSECTION
public static final int INTERSECTION
The spatial functions supported by this class.
These operations implement various boolean combinations of the resultants of the overlay.
SYMDIFFERENCE
public static final int SYMDIFFERENCE
UNION
public static final int UNION
getResultGeometry
public Geometry getResultGeometry(int funcCode)
insertUniqueEdge
protected void insertUniqueEdge(Edge e)
Insert an edge from one of the noded input graphs.
Checks edges that are inserted to see if an
identical edge already exists.
If so, the edge is not inserted, but its label is merged
with the existing edge.
isCoveredByA
public boolean isCoveredByA(Coordinate coord)
This method is used to decide if an L edge should be included in the result or not.
- true if the coord point is covered by a result Area geometry
isCoveredByLA
public boolean isCoveredByLA(Coordinate coord)
This method is used to decide if a point node should be included in the result or not.
- true if the coord point is covered by a result Line or Area geometry
isResultOfOp
public static boolean isResultOfOp(Label label,
int opCode)
isResultOfOp
public static boolean isResultOfOp(int loc0,
int loc1,
int opCode)
This method will handle arguments of Location.NULL correctly
- true if the locations correspond to the opCode