PostGIS
3.0.6dev-r@@SVN_REVISION@@
◆
gserialized_spgist_choose_2d()
PGDLLEXPORT Datum gserialized_spgist_choose_2d
(
PG_FUNCTION_ARGS
)
Definition at line
313
of file
gserialized_spgist_2d.c
.
314
{
315
spgChooseIn *in = (spgChooseIn *)PG_GETARG_POINTER(0);
316
spgChooseOut *out = (spgChooseOut *)PG_GETARG_POINTER(1);
317
BOX2DF *
centroid
= (BOX2DF *)DatumGetPointer(in->prefixDatum), *box = (BOX2DF *)DatumGetPointer(in->leafDatum);
318
319
out->resultType = spgMatchNode;
320
out->result.matchNode.restDatum = PointerGetDatum(box);
321
322
/* nodeN will be set by core, when allTheSame. */
323
if
(!in->allTheSame)
324
out->result.matchNode.nodeN =
getQuadrant4D
(
centroid
, box);
325
326
PG_RETURN_VOID();
327
}
getQuadrant4D
static uint8 getQuadrant4D(BOX2DF *centroid, BOX2DF *inBox)
Definition:
gserialized_spgist_2d.c:129
centroid
Datum centroid(PG_FUNCTION_ARGS)
Definition:
postgis/lwgeom_geos.c:1377
References
centroid()
, and
getQuadrant4D()
.
Here is the call graph for this function:
postgis
gserialized_spgist_2d.c
Generated by
1.9.1