PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gserialized_spgist_choose_nd()

PGDLLEXPORT Datum gserialized_spgist_choose_nd ( PG_FUNCTION_ARGS  )

Definition at line 289 of file gserialized_spgist_nd.c.

290{
291 spgChooseIn *in = (spgChooseIn *)PG_GETARG_POINTER(0);
292 spgChooseOut *out = (spgChooseOut *)PG_GETARG_POINTER(1);
293 GIDX *centroid = (GIDX *)DatumGetPointer(in->prefixDatum), *box = (GIDX *)DatumGetPointer(in->leafDatum);
294
295 out->resultType = spgMatchNode;
296 out->result.matchNode.restDatum = PointerGetDatum(box);
297
298 /* nodeN will be set by core, when allTheSame. */
299 if (!in->allTheSame)
300 out->result.matchNode.nodeN = getOctant(centroid, box);
301
302 PG_RETURN_VOID();
303}
static uint16_t getOctant(const GIDX *centroid, const GIDX *inBox)
Datum centroid(PG_FUNCTION_ARGS)

References centroid(), and getOctant().

Here is the call graph for this function: