48{
50 double lat[2], lon[2];
51
52 POSTGIS_DEBUG(2, "parse_geohash called.");
53
54 if (NULL == geohash)
55 {
57 }
58
60
61 POSTGIS_DEBUGF(2, "ST_Box2dFromGeoHash sw: %.20f, %.20f", lon[0], lat[0]);
62 POSTGIS_DEBUGF(2, "ST_Box2dFromGeoHash ne: %.20f, %.20f", lon[1], lat[1]);
63
65
68
71
72 POSTGIS_DEBUG(2, "parse_geohash finished.");
73 return box;
74}
GBOX * gbox_new(lwflags_t flags)
Create a new gbox with the dimensionality indicated by the flags.
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
void decode_geohash_bbox(char *geohash, double *lat, double *lon, int precision)
static void geohash_lwpgerror(char *msg, __attribute__((__unused__)) int error_code)