PostGIS
2.5.7dev-r@@SVN_REVISION@@
◆
gserialized_spgist_choose_3d()
PGDLLEXPORT Datum gserialized_spgist_choose_3d
(
PG_FUNCTION_ARGS
)
Definition at line
395
of file
gserialized_spgist_3d.c
.
396
{
397
spgChooseIn *in = (spgChooseIn *)PG_GETARG_POINTER(0);
398
spgChooseOut *out = (spgChooseOut *)PG_GETARG_POINTER(1);
399
BOX3D
*
centroid
= DatumGetBox3DP(in->prefixDatum);
400
BOX3D
*box = DatumGetBox3DP(in->leafDatum);
401
402
out->resultType = spgMatchNode;
403
out->result.matchNode.restDatum = Box3DPGetDatum(box);
404
405
/* nodeN will be set by core, when allTheSame. */
406
if
(!in->allTheSame)
407
out->result.matchNode.nodeN =
getOctant
(
centroid
, box);
408
409
PG_RETURN_VOID();
410
}
getOctant
static uint8 getOctant(BOX3D *centroid, BOX3D *inBox)
Definition:
gserialized_spgist_3d.c:159
centroid
Datum centroid(PG_FUNCTION_ARGS)
Definition:
postgis/lwgeom_geos.c:1273
BOX3D
Definition:
liblwgeom.h:279
References
centroid()
, and
getOctant()
.
Here is the call graph for this function:
postgis
gserialized_spgist_3d.c
Generated by
1.9.1