15#ifndef GEOS_OPERATION_CLUSTER_GEOMETRYDISTANCECLUSTERFINDER
16#define GEOS_OPERATION_CLUSTER_GEOMETRYDISTANCECLUSTERFINDER
18#include <geos/operation/cluster/AbstractClusterFinder.h>
19#include <geos/geom/prep/PreparedGeometry.h>
20#include <geos/geom/prep/PreparedGeometryFactory.h>
36 if (m_prep ==
nullptr || &(m_prep->getGeometry()) != a) {
37 m_prep = geom::prep::PreparedGeometryFactory::prepare(a);
40 return m_prep->isWithinDistance(b, m_distance);
50 std::unique_ptr<geom::prep::PreparedGeometry> m_prep;
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
void expandBy(double deltaX, double deltaY)
Expands this envelope by a given distance in all directions. Both positive and negative distances are...
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
virtual const Envelope * getEnvelopeInternal() const =0
Returns the minimum and maximum x and y values in this Geometry, or a null Envelope if this Geometry ...
Definition AbstractClusterFinder.h:47
Definition GeometryDistanceClusterFinder.h:30
bool shouldJoin(const geom::Geometry *a, const geom::Geometry *b) override
Definition GeometryDistanceClusterFinder.h:35
const geom::Envelope & queryEnvelope(const geom::Geometry *a) override
Definition GeometryDistanceClusterFinder.h:43
Basic namespace for all GEOS functionalities.
Definition geos.h:39