GEOS
3.9.1dev
|
Computes the topological relationship (Location) of a single point to a Geometry. More...
#include <PointLocator.h>
Public Member Functions | |
PointLocator () | |
~PointLocator () | |
geom::Location | locate (const geom::Coordinate &p, const geom::Geometry *geom) |
bool | intersects (const geom::Coordinate &p, const geom::Geometry *geom) |
Private Member Functions | |
void | computeLocation (const geom::Coordinate &p, const geom::Geometry *geom) |
void | updateLocationInfo (geom::Location loc) |
geom::Location | locate (const geom::Coordinate &p, const geom::Point *pt) |
geom::Location | locate (const geom::Coordinate &p, const geom::LineString *l) |
geom::Location | locateInPolygonRing (const geom::Coordinate &p, const geom::LinearRing *ring) |
geom::Location | locate (const geom::Coordinate &p, const geom::Polygon *poly) |
Private Attributes | |
bool | isIn |
int | numBoundaries |
Computes the topological relationship (Location) of a single point to a Geometry.
The algorithm obeys the SFS boundaryDetermination rule to correctly determine whether the point lies on the boundary or not.
Notes:
Definition at line 57 of file PointLocator.h.
|
inline |
Definition at line 59 of file PointLocator.h.
|
inline |
Definition at line 60 of file PointLocator.h.
|
private |
|
inline |
Convenience method to test a point for intersection with a Geometry
p | the coordinate to test |
geom | the Geometry to test |
true
if the point is in the interior or boundary of the Geometry Definition at line 81 of file PointLocator.h.
References geos::geom::EXTERIOR.
geom::Location geos::algorithm::PointLocator::locate | ( | const geom::Coordinate & | p, |
const geom::Geometry * | geom | ||
) |
Computes the topological relationship (Location) of a single point to a Geometry. It handles both single-element and multi-element Geometries. The algorithm for multi-part Geometriestakes into account the SFS Boundary Determination rule.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 88 of file PointLocator.h.
|
private |
Definition at line 90 of file PointLocator.h.