GEOS
3.9.1dev
|
A base class for PreparedGeometry subclasses. More...
#include <BasicPreparedGeometry.h>
Public Member Functions | |
BasicPreparedGeometry (const Geometry *geom) | |
~BasicPreparedGeometry () override=default | |
const geom::Geometry & | getGeometry () const override |
Gets the original Geometry which has been prepared. More... | |
const Coordinate::ConstVect * | getRepresentativePoints () const |
bool | isAnyTargetComponentInTest (const geom::Geometry *testGeom) const |
bool | contains (const geom::Geometry *g) const override |
bool | containsProperly (const geom::Geometry *g) const override |
bool | coveredBy (const geom::Geometry *g) const override |
bool | covers (const geom::Geometry *g) const override |
bool | crosses (const geom::Geometry *g) const override |
bool | disjoint (const geom::Geometry *g) const override |
bool | intersects (const geom::Geometry *g) const override |
bool | overlaps (const geom::Geometry *g) const override |
bool | touches (const geom::Geometry *g) const override |
bool | within (const geom::Geometry *g) const override |
std::unique_ptr< geom::CoordinateSequence > | nearestPoints (const geom::Geometry *g) const override |
double | distance (const geom::Geometry *g) const override |
std::string | toString () |
![]() | |
virtual | ~PreparedGeometry () |
Protected Member Functions | |
void | setGeometry (const geom::Geometry *geom) |
bool | envelopesIntersect (const geom::Geometry *g) const |
bool | envelopeCovers (const geom::Geometry *g) const |
Private Attributes | |
const geom::Geometry * | baseGeom |
Coordinate::ConstVect | representativePts |
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.
Definition at line 59 of file BasicPreparedGeometry.h.
geos::geom::prep::BasicPreparedGeometry::BasicPreparedGeometry | ( | const Geometry * | geom | ) |
|
overridedefault |
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
Reimplemented in geos::geom::prep::PreparedPolygon.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
Reimplemented in geos::geom::prep::PreparedPolygon.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
Reimplemented in geos::geom::prep::PreparedPolygon.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
|
overridevirtual |
Standard implementation for all geometries. Supports GeometryCollections as input.
Implements geos::geom::prep::PreparedGeometry.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
Reimplemented in geos::geom::prep::PreparedPolygon, and geos::geom::prep::PreparedLineString.
|
protected |
|
protected |
|
inlineoverridevirtual |
Gets the original Geometry which has been prepared.
Implements geos::geom::prep::PreparedGeometry.
Definition at line 95 of file BasicPreparedGeometry.h.
|
inline |
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)
Definition at line 108 of file BasicPreparedGeometry.h.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
Reimplemented in geos::geom::prep::PreparedPolygon, geos::geom::prep::PreparedLineString, and geos::geom::prep::PreparedPoint.
bool geos::geom::prep::BasicPreparedGeometry::isAnyTargetComponentInTest | ( | const geom::Geometry * | testGeom | ) | const |
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.
testGeom | the test geometry |
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
Reimplemented in geos::geom::prep::PreparedLineString.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
|
protected |
Sets the original Geometry which will be prepared.
std::string geos::geom::prep::BasicPreparedGeometry::toString | ( | ) |
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
|
overridevirtual |
Default implementation.
Implements geos::geom::prep::PreparedGeometry.
|
private |
Definition at line 61 of file BasicPreparedGeometry.h.
|
private |
Definition at line 62 of file BasicPreparedGeometry.h.