Class BasicPreparedGeometry

Hierarchy: Object , BasicPreparedGeometry
All Implemented Interfaces: PreparedGeometry
Direct Known Subclasses: PreparedPolygon, PreparedLineString, PreparedPoint
class BasicPreparedGeometry
implements PreparedGeometry
A base class for PreparedGeometry subclasses. Contains default implementations for methods, which simply delegate to the equivalent Geometry methods. This class may be used as a "no-op" class for Geometry types which do not have a corresponding PreparedGeometry implementation.
Authors:
Martin Davis
public BasicPreparedGeometry(Geometry geom)
public Geometry getGeometry()
public List getRepresentativePoints()
Gets the list of representative points for this geometry. One vertex is included for every component of the geometry (i.e. including one for every ring of polygonal geometries). Do not modify the returned list!
Returns:
a List of Coordinate
public boolean isAnyTargetComponentInTest(Geometry testGeom)
Tests whether any representative of the target geometry intersects the test geometry. This is useful in A/A, A/L, A/P, L/P, and P/P cases.
Parameters:
testGeom - testGeom the test geometry
Returns:
true if any component intersects the areal test geometry
protected boolean envelopesIntersect(Geometry g)
Determines whether a Geometry g interacts with this geometry by testing the geometry envelopes.
Parameters:
g - g a Geometry
Returns:
true if the envelopes intersect
protected boolean envelopeCovers(Geometry g)
Determines whether the envelope of this geometry covers the Geometry g.
Parameters:
g - g a Geometry
Returns:
true if g is contained in this envelope
public boolean contains(Geometry g)
Default implementation.
public boolean containsProperly(Geometry g)
Default implementation.
public boolean coveredBy(Geometry g)
Default implementation.
public boolean covers(Geometry g)
Default implementation.
public boolean crosses(Geometry g)
Default implementation.
public boolean disjoint(Geometry g)
Standard implementation for all geometries. Supports GeometryCollections as input.
public boolean intersects(Geometry g)
Default implementation.
public boolean overlaps(Geometry g)
Default implementation.
public boolean touches(Geometry g)
Default implementation.
public boolean within(Geometry g)
Default implementation.
public String toString()