GEOS
3.9.1dev
|
Determines the location of Coordinates relative to an areal geometry, using indexing for efficiency. More...
#include <IndexedPointInAreaLocator.h>
Classes | |
class | IntervalIndexedGeometry |
class | SegmentVisitor |
Public Member Functions | |
IndexedPointInAreaLocator (const geom::Geometry &g) | |
Creates a new locator for a given Geometry. More... | |
const geom::Geometry & | getGeometry () const |
geom::Location | locate (const geom::Coordinate *p) override |
Determines the Location of a point in an areal Geometry. More... | |
![]() | |
virtual | ~PointOnGeometryLocator () |
Private Member Functions | |
void | buildIndex (const geom::Geometry &g) |
IndexedPointInAreaLocator (const IndexedPointInAreaLocator &other)=delete | |
IndexedPointInAreaLocator & | operator= (const IndexedPointInAreaLocator &rhs)=delete |
Private Attributes | |
const geom::Geometry & | areaGeom |
std::unique_ptr< IntervalIndexedGeometry > | index |
Determines the location of Coordinates relative to an areal geometry, using indexing for efficiency.
The Location is computed precisely, in that points located on the geometry boundary or segments will return geom::Location::BOUNDARY.
Polygonal and LinearRing geometries are supported.
The index is lazy-loaded, which allows creating instances even if they are not used.
Definition at line 55 of file IndexedPointInAreaLocator.h.
|
privatedelete |
geos::algorithm::locate::IndexedPointInAreaLocator::IndexedPointInAreaLocator | ( | const geom::Geometry & | g | ) |
Creates a new locator for a given Geometry.
Polygonal and LinearRing geometries are supported.
g | the Geometry to locate in |
|
private |
|
inline |
Definition at line 110 of file IndexedPointInAreaLocator.h.
|
overridevirtual |
Determines the Location of a point in an areal Geometry.
p | the point to test |
Implements geos::algorithm::locate::PointOnGeometryLocator.
|
privatedelete |
|
private |
Definition at line 91 of file IndexedPointInAreaLocator.h.
|
private |
Definition at line 92 of file IndexedPointInAreaLocator.h.