|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for classes which prepare Geometry
s
in order to optimize the performance
of repeated calls to specific geometric operations.
A given implementation may provide optimized implementations
for only some of the specified methods,
and delegate the remaining methods to the original Geometry
operations.
An implementation may also only optimize certain situations,
and delegate others.
See the implementing classes for documentation about which methods and situations
they optimize.
Method Summary | |
boolean |
contains(Geometry geom)
Tests whether the base Geometry contains a given geometry. |
boolean |
containsProperly(Geometry geom)
Tests whether the base Geometry contains a given geometry. |
boolean |
coveredBy(Geometry geom)
Tests whether the base Geometry is covered by a given geometry. |
boolean |
covers(Geometry geom)
Tests whether the base Geometry covers a given geometry. |
boolean |
crosses(Geometry geom)
Tests whether the base Geometry crosses a given geometry. |
boolean |
disjoint(Geometry geom)
Tests whether the base Geometry is disjoint from a given geometry. |
Geometry |
getGeometry()
Gets the original Geometry which has been prepared. |
boolean |
intersects(Geometry geom)
Tests whether the base Geometry intersects a given geometry. |
boolean |
overlaps(Geometry geom)
Tests whether the base Geometry overlaps a given geometry. |
boolean |
touches(Geometry geom)
Tests whether the base Geometry touches a given geometry. |
boolean |
within(Geometry geom)
Tests whether the base Geometry is within a given geometry. |
Method Detail |
public Geometry getGeometry()
Geometry
which has been prepared.
public boolean contains(Geometry geom)
Geometry
contains a given geometry.
geom
- the Geometry to test
Geometry.contains(Geometry)
public boolean containsProperly(Geometry geom)
Geometry
contains a given geometry.
The containsProperly
predicate has the following equivalent definitions:
[T**FF*FF*]
An example use case for this predicate is computing the intersections of a set of geometries with a large polygonal geometry. Since intersection is a fairly slow operation, it can be more efficient to use containsProperly to filter out test geometries which lie wholly inside the area. In these cases the intersection known a priori to be simply the original test geometry.
geom
- the Geometry to test
public boolean coveredBy(Geometry geom)
Geometry
is covered by a given geometry.
geom
- the Geometry to test
Geometry.coveredBy(Geometry)
public boolean covers(Geometry geom)
Geometry
covers a given geometry.
geom
- the Geometry to test
Geometry.covers(Geometry)
public boolean crosses(Geometry geom)
Geometry
crosses a given geometry.
geom
- the Geometry to test
Geometry.crosses(Geometry)
public boolean disjoint(Geometry geom)
Geometry
is disjoint from a given geometry.
geom
- the Geometry to test
Geometry.disjoint(Geometry)
public boolean intersects(Geometry geom)
Geometry
intersects a given geometry.
geom
- the Geometry to test
Geometry.intersects(Geometry)
public boolean overlaps(Geometry geom)
Geometry
overlaps a given geometry.
geom
- the Geometry to test
Geometry.overlaps(Geometry)
public boolean touches(Geometry geom)
Geometry
touches a given geometry.
geom
- the Geometry to test
Geometry.touches(Geometry)
public boolean within(Geometry geom)
Geometry
is within a given geometry.
geom
- the Geometry to test
Geometry.within(Geometry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |