Computes the covers spatial relationship predicate for a PreparedPolygon relative to all other Geometry classes.
More...
#include <PreparedPolygonCovers.h>
Public Member Functions | |
| PreparedPolygonCovers (const PreparedPolygon *const prep) | |
| bool | covers (const Geometry *geom) |
Static Public Member Functions | |
| static bool | covers (const PreparedPolygon *const prep, const geom::Geometry *geom) |
Protected Member Functions | |
| bool | fullTopologicalPredicate (const geom::Geometry *geom) |
Computes the covers spatial relationship predicate for a PreparedPolygon relative to all other Geometry classes.
Uses short-circuit tests and indexing to improve performance.
It is not possible to short-circuit in all cases, in particular in the case where the test geometry touches the polygon linework. In this case full topology must be computed.
| geos::geom::prep::PreparedPolygonCovers::PreparedPolygonCovers | ( | const PreparedPolygon *const | prep ) | [inline] |
Creates an instance of this operation.
| prepPoly | the PreparedPolygon to evaluate |
| static bool geos::geom::prep::PreparedPolygonCovers::covers | ( | const PreparedPolygon *const | prep, |
| const geom::Geometry * | geom | ||
| ) | [inline, static] |
Computes the covers predicate between a PreparedPolygon and a Geometry.
| prep | the prepared polygon |
| geom | a test geometry |
References covers().
Referenced by covers().
| bool geos::geom::prep::PreparedPolygonCovers::covers | ( | const Geometry * | geom ) | [inline] |
Tests whether this PreparedPolygon covers a given geometry.
| geom | the test geometry |
References geos::geom::prep::AbstractPreparedPolygonContains::eval().
| bool geos::geom::prep::PreparedPolygonCovers::fullTopologicalPredicate | ( | const geom::Geometry * | geom ) | [protected, virtual] |
Computes the full topological covers predicate. Used when short-circuit tests are not conclusive.
| geom | the test geometry |
Implements geos::geom::prep::AbstractPreparedPolygonContains.
1.7.2