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
◆
box2d_from_geohash()
Datum box2d_from_geohash
(
PG_FUNCTION_ARGS
)
Definition at line
77
of file
lwgeom_in_geohash.c
.
78
{
79
GBOX
*box = NULL;
80
text *geohash_input = NULL;
81
char
*geohash = NULL;
82
int
precision
= -1;
83
84
if
(PG_ARGISNULL(0))
85
{
86
PG_RETURN_NULL();
87
}
88
89
if
(!PG_ARGISNULL(1))
90
{
91
precision
= PG_GETARG_INT32(1);
92
}
93
94
geohash_input = PG_GETARG_TEXT_P(0);
95
geohash = text_to_cstring(geohash_input);
96
97
box =
parse_geohash
(geohash,
precision
);
98
99
PG_RETURN_POINTER(box);
100
}
precision
static uint8_t precision
Definition:
cu_in_twkb.c:25
parse_geohash
static GBOX * parse_geohash(char *geohash, int precision)
Definition:
lwgeom_in_geohash.c:47
GBOX
Definition:
liblwgeom.h:352
References
parse_geohash()
, and
precision
.
Here is the call graph for this function:
postgis
lwgeom_in_geohash.c
Generated by
1.9.1