17 #ifndef GEOS_ALGORITHM_LOCATE_INDEXEDPOINTINAREALOCATOR_H
18 #define GEOS_ALGORITHM_LOCATE_INDEXEDPOINTINAREALOCATOR_H
20 #include <geos/geom/LineSegment.h>
21 #include <geos/algorithm/locate/PointOnGeometryLocator.h>
22 #include <geos/index/ItemVisitor.h>
23 #include <geos/index/strtree/TemplateSTRtree.h>
30 class RayCrossingCounter;
35 class CoordinateSequence;
62 assert(p_p0 + 1 == p_p1);
76 class IntervalIndexedGeometry {
79 index::strtree::TemplateSTRtree<SegmentView, index::strtree::IntervalTraits> index;
87 template<
typename Visitor>
88 void query(
double min,
double max, Visitor&& f) {
94 std::unique_ptr<IntervalIndexedGeometry> index;
Determines the location of Coordinates relative to an areal geometry, using indexing for efficiency.
Definition: IndexedPointInAreaLocator.h:55
IndexedPointInAreaLocator(const geom::Geometry &g)
Creates a new locator for a given Geometry.
geom::Location locate(const geom::Coordinate *p) override
Determines the Location of a point in an areal Geometry.
An interface for classes which determine the Location of points in Polygon or MultiPolygon geometries...
Definition: PointOnGeometryLocator.h:37
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
A contiguous portion of 1D-space. Used internally by SIRtree.
Definition: strtree/Interval.h:30
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:34
Basic namespace for all GEOS functionalities.
Definition: Angle.h:26