Class PreparedPoint
java.lang.Object
org.locationtech.jts.geom.prep.PreparedPoint
- All Implemented Interfaces:
PreparedGeometry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDefault implementation.booleanDefault implementation.booleanDefault implementation.booleanDefault implementation.booleanDefault implementation.booleanStandard implementation for all geometries.protected booleanDetermines whether the envelope of this geometry covers the Geometry g.protected booleanDetermines whether a Geometry g interacts with this geometry by testing the geometry envelopes.Gets the originalGeometrywhich has been prepared.Gets the list of representative points for this geometry.booleanTests whether this point intersects aGeometry.booleanisAnyTargetComponentInTest(Geometry testGeom) Tests whether any representative of the target geometry intersects the test geometry.booleanDefault implementation.toString()booleanDefault implementation.booleanDefault implementation.
-
Constructor Details
-
PreparedPoint
-
-
Method Details
-
intersects
Tests whether this point intersects aGeometry.The optimization here is that computing topology for the test geometry is avoided. This can be significant for large geometries.
- Specified by:
intersectsin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry intersects the given Geometry
- See Also:
-
getGeometry
Description copied from interface:PreparedGeometryGets the originalGeometrywhich has been prepared.- Specified by:
getGeometryin interfacePreparedGeometry- Returns:
- the base geometry
-
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
-
isAnyTargetComponentInTest
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- the test geometry- Returns:
- true if any component intersects the areal test geometry
-
envelopesIntersect
Determines whether a Geometry g interacts with this geometry by testing the geometry envelopes.- Parameters:
g- a Geometry- Returns:
- true if the envelopes intersect
-
envelopeCovers
Determines whether the envelope of this geometry covers the Geometry g.- Parameters:
g- a Geometry- Returns:
- true if g is contained in this envelope
-
contains
Default implementation.- Specified by:
containsin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry contains the given Geometry
- See Also:
-
containsProperly
Default implementation.- Specified by:
containsProperlyin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry properly contains the given Geometry
- See Also:
-
coveredBy
Default implementation.- Specified by:
coveredByin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry is covered by the given Geometry
- See Also:
-
covers
Default implementation.- Specified by:
coversin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry covers the given Geometry
- See Also:
-
crosses
Default implementation.- Specified by:
crossesin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry crosses the given Geometry
- See Also:
-
disjoint
Standard implementation for all geometries. SupportsGeometryCollections as input.- Specified by:
disjointin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry is disjoint from the given Geometry
- See Also:
-
overlaps
Default implementation.- Specified by:
overlapsin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry overlaps the given Geometry
- See Also:
-
touches
Default implementation.- Specified by:
touchesin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry touches the given Geometry
- See Also:
-
within
Default implementation.- Specified by:
withinin interfacePreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry is within the given Geometry
- See Also:
-
toString
-