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 Polygon
s and MultiPolygon
s.
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 boolean
private PointOnGeometryLocator
private FastSegmentSetIntersectionFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Default implementation.boolean
Default implementation.boolean
Default implementation.Gets the indexed intersection finder for this geometry.boolean
Default 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:BasicPreparedGeometry
Default implementation.- Specified by:
intersects
in interfacePreparedGeometry
- Overrides:
intersects
in classBasicPreparedGeometry
- Parameters:
g
- the Geometry to test- Returns:
- true if this Geometry intersects the given Geometry
- See Also:
-
contains
Description copied from class:BasicPreparedGeometry
Default implementation.- Specified by:
contains
in interfacePreparedGeometry
- Overrides:
contains
in classBasicPreparedGeometry
- Parameters:
g
- the Geometry to test- Returns:
- true if this Geometry contains the given Geometry
- See Also:
-
containsProperly
Description copied from class:BasicPreparedGeometry
Default implementation.- Specified by:
containsProperly
in interfacePreparedGeometry
- Overrides:
containsProperly
in classBasicPreparedGeometry
- Parameters:
g
- the Geometry to test- Returns:
- true if this Geometry properly contains the given Geometry
- See Also:
-
covers
Description copied from class:BasicPreparedGeometry
Default implementation.- Specified by:
covers
in interfacePreparedGeometry
- Overrides:
covers
in classBasicPreparedGeometry
- Parameters:
g
- the Geometry to test- Returns:
- true if this Geometry covers the given Geometry
- See Also:
-