GEOS  3.13.0dev
EnvelopeIntersectsClusterFinder.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2020-2021 Daniel Baston
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 
15 #ifndef GEOS_OPERATION_CLUSTER_ENVELOPEINTERSECTSCLUSTERFINDER
16 #define GEOS_OPERATION_CLUSTER_ENVELOPEINTERSECTSCLUSTERFINDER
17 
18 #include <geos/operation/cluster/AbstractClusterFinder.h>
19 
20 namespace geos {
21 namespace operation {
22 namespace cluster {
23 
28 protected:
29 
30  const geom::Envelope& queryEnvelope(const geom::Geometry* a) override {
31  return *(a->getEnvelopeInternal());
32  }
33 
34  bool shouldJoin(const geom::Geometry* a, const geom::Geometry *b) override {
36  }
37 
38 };
39 
40 }
41 }
42 }
43 
44 #endif
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
static bool intersects(const CoordinateXY &p1, const CoordinateXY &p2, const CoordinateXY &q)
Test the point q to see whether it intersects the Envelope defined by p1-p2.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
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: EnvelopeIntersectsClusterFinder.h:27
bool shouldJoin(const geom::Geometry *a, const geom::Geometry *b) override
Definition: EnvelopeIntersectsClusterFinder.h:34
const geom::Envelope & queryEnvelope(const geom::Geometry *a) override
Definition: EnvelopeIntersectsClusterFinder.h:30
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25