GEOS
3.3.3
|
Computes the location of points relative to an areal Geometry, using a simple O(n) algorithm. More...
#include <SimplePointInAreaLocator.h>
Public Member Functions | |
SimplePointInAreaLocator (const geom::Geometry *g) | |
int | locate (const geom::Coordinate *p) |
Static Public Member Functions | |
static int | locate (const geom::Coordinate &p, const geom::Geometry *geom) |
static bool | containsPointInPolygon (const geom::Coordinate &p, const geom::Polygon *poly) |
Computes the location of points relative to an areal Geometry, using a simple O(n) algorithm.
This algorithm is suitable for use in cases where only one or a few points will be tested against a given area.
The algorithm used is only guaranteed to return correct results for points which are not on the boundary of the Geometry.
|
inlinevirtual |
Determines the Location of a point in an areal Geometry.
p | the point to test |
Implements geos::algorithm::locate::PointOnGeometryLocator.