Definition at line 103 of file lwgeom_in_geohash.c.
104{
108 text *geohash_input = NULL;
109 char *geohash = NULL;
110 double lon, lat;
112
113 if (PG_ARGISNULL(0))
114 {
115 PG_RETURN_NULL();
116 }
117
118 if (!PG_ARGISNULL(1))
119 {
121 }
122
123 geohash_input = PG_GETARG_TEXT_P(0);
124 geohash = text_to_cstring(geohash_input);
125
127
130
133
135
136 PG_RETURN_POINTER(
result);
137}
char result[OUT_DOUBLE_BUFFER_SIZE]
LWPOINT * lwpoint_make2d(int32_t srid, double x, double y)
#define SRID_UNKNOWN
Unknown SRID value.
static GBOX * parse_geohash(char *geohash, int precision)
References lwfree(), lwpoint_make2d(), parse_geohash(), precision, result, SRID_UNKNOWN, GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.