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
►
PostGIS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
◆
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:1547
References
centroid()
, and
getQuadrant4D()
.
Here is the call graph for this function:
postgis
gserialized_spgist_2d.c
Generated by
1.9.1