Definition at line 264 of file lwgeom_geos_cluster.c.
265{
267
268 GEOSGeometry* query_envelope;
270 {
273 } else {
276 }
277
278 if (!query_envelope)
280
282
283 GEOSGeom_destroy(query_envelope);
284
286}
GEOSGeometry * make_geos_segment(double x1, double y1, double x2, double y2)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
const GBOX * lwgeom_get_bbox(const LWGEOM *lwgeom)
Get a non-empty geometry bounding box, computing and caching it if not already there.
static void query_accumulate(void *item, void *userdata)
static LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
static const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
References getPoint2d_cp(), LW_FAILURE, LW_SUCCESS, lwgeom_as_lwpoint(), lwgeom_get_bbox(), make_geos_segment(), QueryContext::num_items_found, POINTTYPE, query_accumulate(), POINT2D::x, GBOX::xmax, GBOX::xmin, POINT2D::y, GBOX::ymax, and GBOX::ymin.
Referenced by union_dbscan_general(), and union_dbscan_minpoints_1().