Package org.locationtech.jts.geom.prep
Class PreparedPolygon
java.lang.Object
org.locationtech.jts.geom.prep.BasicPreparedGeometry
org.locationtech.jts.geom.prep.PreparedPolygon
- All Implemented Interfaces:
PreparedGeometry
A prepared version for
Polygonal geometries.
This class supports both Polygons and MultiPolygons.
This class does not support MultiPolygons which are non-valid (e.g. with overlapping elements).
Instances of this class are thread-safe and immutable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate PointOnGeometryLocatorprivate FastSegmentSetIntersectionFinder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDefault implementation.booleanDefault implementation.booleanDefault implementation.Gets the indexed intersection finder for this geometry.booleanDefault implementation.Methods inherited from class org.locationtech.jts.geom.prep.BasicPreparedGeometry
coveredBy, crosses, disjoint, envelopeCovers, envelopesIntersect, getGeometry, getRepresentativePoints, isAnyTargetComponentInTest, overlaps, toString, touches, within
-
Field Details
-
isRectangle
private final boolean isRectangle -
segIntFinder
-
pia
-
-
Constructor Details
-
PreparedPolygon
-
-
Method Details
-
getIntersectionFinder
Gets the indexed intersection finder for this geometry.- Returns:
- the intersection finder
-
getPointLocator
-
intersects
Description copied from class:BasicPreparedGeometryDefault implementation.- Specified by:
intersectsin interfacePreparedGeometry- Overrides:
intersectsin classBasicPreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry intersects the given Geometry
- See Also:
-
contains
Description copied from class:BasicPreparedGeometryDefault implementation.- Specified by:
containsin interfacePreparedGeometry- Overrides:
containsin classBasicPreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry contains the given Geometry
- See Also:
-
containsProperly
Description copied from class:BasicPreparedGeometryDefault implementation.- Specified by:
containsProperlyin interfacePreparedGeometry- Overrides:
containsProperlyin classBasicPreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry properly contains the given Geometry
- See Also:
-
covers
Description copied from class:BasicPreparedGeometryDefault implementation.- Specified by:
coversin interfacePreparedGeometry- Overrides:
coversin classBasicPreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry covers the given Geometry
- See Also:
-