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