|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.operation.GeometryGraphOperation
com.vividsolutions.jts.operation.overlay.OverlayOp
public class OverlayOp
Computes the overlay of two Geometry
s. The overlay
can be used to determine any boolean combination of the geometries.
Field Summary | |
---|---|
static int |
DIFFERENCE
|
static int |
INTERSECTION
The spatial functions supported by this class. |
static int |
SYMDIFFERENCE
|
static int |
UNION
|
Fields inherited from class com.vividsolutions.jts.operation.GeometryGraphOperation |
---|
arg, li, resultPrecisionModel |
Constructor Summary | |
---|---|
OverlayOp(Geometry g0,
Geometry g1)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class com.vividsolutions.jts.operation.GeometryGraphOperation |
---|
getArgGeometry, setComputationPrecision |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INTERSECTION
public static final int UNION
public static final int DIFFERENCE
public static final int SYMDIFFERENCE
Constructor Detail |
---|
public OverlayOp(Geometry g0, Geometry g1)
Method Detail |
---|
public static Geometry overlayOp(Geometry geom0, Geometry geom1, int opCode)
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 operation
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |