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

◆ 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}
static uint8_t precision
Definition cu_in_twkb.c:25
static GBOX * parse_geohash(char *geohash, int precision)

References parse_geohash(), and precision.

Here is the call graph for this function: