PostGIS
3.4.0dev-r@@SVN_REVISION@@
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
c
d
f
g
i
l
m
p
q
w
Variables
a
b
c
d
f
g
h
i
l
n
o
p
r
s
t
u
v
x
y
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Properties
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
w
y
Typedefs
_
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
y
Enumerations
Enumerator
a
c
d
e
f
g
i
j
l
m
p
r
s
t
u
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
◆
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
}
getOctant
static uint16_t getOctant(const GIDX *centroid, const GIDX *inBox)
Definition:
gserialized_spgist_nd.c:125
centroid
Datum centroid(PG_FUNCTION_ARGS)
Definition:
postgis/lwgeom_geos.c:1547
References
centroid()
, and
getOctant()
.
Here is the call graph for this function:
postgis
gserialized_spgist_nd.c
Generated by
1.9.1