public class PreparedPoint extends Object
Puntal geometries.
Instances of this class are thread-safe.
| Constructor and Description |
|---|
PreparedPoint(Puntal point) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Geometry g)
Default implementation.
|
boolean |
containsProperly(Geometry g)
Default implementation.
|
boolean |
coveredBy(Geometry g)
Default implementation.
|
boolean |
covers(Geometry g)
Default implementation.
|
boolean |
crosses(Geometry g)
Default implementation.
|
boolean |
disjoint(Geometry g)
Standard implementation for all geometries.
|
Geometry |
getGeometry()
Gets the original
Geometry which has been prepared. |
List |
getRepresentativePoints()
Gets the list of representative points for this geometry.
|
boolean |
intersects(Geometry g)
Tests whether this point intersects a
Geometry. |
boolean |
isAnyTargetComponentInTest(Geometry testGeom)
Tests whether any representative of the target geometry
intersects the test geometry.
|
boolean |
overlaps(Geometry g)
Default implementation.
|
String |
toString() |
boolean |
touches(Geometry g)
Default implementation.
|
boolean |
within(Geometry g)
Default implementation.
|
public PreparedPoint(Puntal point)
public boolean intersects(Geometry g)
Geometry.
The optimization here is that computing topology for the test geometry is avoided. This can be significant for large geometries.
intersects in interface PreparedGeometryg - the Geometry to testGeometry.intersects(Geometry)public Geometry getGeometry()
PreparedGeometryGeometry which has been prepared.getGeometry in interface PreparedGeometrypublic List getRepresentativePoints()
public boolean isAnyTargetComponentInTest(Geometry testGeom)
testGeom - the test geometrypublic boolean contains(Geometry g)
contains in interface PreparedGeometryg - the Geometry to testGeometry.contains(Geometry)public boolean containsProperly(Geometry g)
containsProperly in interface PreparedGeometryg - the Geometry to testGeometry.contains(org.locationtech.jts.geom.Geometry)public boolean coveredBy(Geometry g)
coveredBy in interface PreparedGeometryg - the Geometry to testGeometry.coveredBy(Geometry)public boolean covers(Geometry g)
covers in interface PreparedGeometryg - the Geometry to testGeometry.covers(Geometry)public boolean crosses(Geometry g)
crosses in interface PreparedGeometryg - the Geometry to testGeometry.crosses(Geometry)public boolean disjoint(Geometry g)
GeometryCollections as input.disjoint in interface PreparedGeometryg - the Geometry to testGeometry.disjoint(Geometry)public boolean overlaps(Geometry g)
overlaps in interface PreparedGeometryg - the Geometry to testGeometry.overlaps(Geometry)public boolean touches(Geometry g)
touches in interface PreparedGeometryg - the Geometry to testGeometry.touches(Geometry)public boolean within(Geometry g)
within in interface PreparedGeometryg - the Geometry to testGeometry.within(Geometry)Copyright © 2024. All rights reserved.