|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.operation.GeometryGraphOperation
org.geotools.geometry.iso.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 org.geotools.geometry.iso.operation.GeometryGraphOperation |
---|
arg, cga, li, resultPrecisionModel |
Constructor Summary | |
---|---|
OverlayOp(GeometryImpl g0,
GeometryImpl g1)
Initializes a new Overlay Operation between two geometric objects |
Method Summary | |
---|---|
GeometryImpl |
createGeometry(java.util.List<org.opengis.geometry.primitive.OrientableSurface> aSurfaces,
java.util.List<org.opengis.geometry.primitive.OrientableCurve> aCurves,
java.util.List<org.opengis.geometry.primitive.Point> aPoints)
Creates a new Geometry object appropriate to the input Primitives. |
PlanarGraph |
getGraph()
|
GeometryImpl |
getResultGeometry(int funcCode)
Computes and returns the resulting geometry according to the function code parameter. |
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 GeometryImpl |
overlayOp(GeometryImpl geom0,
GeometryImpl geom1,
int opCode)
|
Methods inherited from class org.geotools.geometry.iso.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(GeometryImpl g0, GeometryImpl g1) throws UnsupportedDimensionException
g0
- First geometric objectg1
- Second geometric object
UnsupportedDimensionException
Method Detail |
---|
public static GeometryImpl overlayOp(GeometryImpl geom0, GeometryImpl geom1, int opCode) throws UnsupportedDimensionException
geom0
- geom1
- opCode
-
UnsupportedDimensionException
public static boolean isResultOfOp(Label label, int opCode)
label
- opCode
-
public static boolean isResultOfOp(int loc0, int loc1, int opCode)
loc0
- loc1
- opCode
-
public GeometryImpl getResultGeometry(int funcCode)
funcCode
- Function code
public PlanarGraph getGraph()
protected void insertUniqueEdge(Edge e)
public boolean isCoveredByLA(Coordinate coord)
public boolean isCoveredByA(Coordinate coord)
public GeometryImpl createGeometry(java.util.List<org.opengis.geometry.primitive.OrientableSurface> aSurfaces, java.util.List<org.opengis.geometry.primitive.OrientableCurve> aCurves, java.util.List<org.opengis.geometry.primitive.Point> aPoints)
aSurfaces
- List of SurfacesaCurves
- List of CurvesaPoints
- List of Points
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |