GEOS
3.9.0dev

Computes the topological relationship (Location) of a single point to a Geometry. More...
#include <geos/geosAlgorithm.h>
Public Member Functions  
geom::Location  locate (const geom::Coordinate &p, const geom::Geometry *geom) 
bool  intersects (const geom::Coordinate &p, const geom::Geometry *geom) 
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:

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 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 singleelement and multielement Geometries. The algorithm for multipart Geometriestakes into account the SFS Boundary Determination rule.