Definition at line 103 of file lwgeom_in_geohash.c.
108 text *geohash_input = NULL;
109 char *geohash = NULL;
118 if (!PG_ARGISNULL(1))
123 geohash_input = PG_GETARG_TEXT_P(0);
124 geohash = text_to_cstring(geohash_input);
136 PG_RETURN_POINTER(
result);
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.