Definition at line 47 of file lwgeom_in_geohash.c.
References box2d_from_geohash(), decode_geohash_bbox(), gbox_new(), geohash_lwpgerror(), gflags(), PG_FUNCTION_INFO_V1(), GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.
Referenced by box2d_from_geohash(), and point_from_geohash().
50 double lat[2], lon[2];
52 POSTGIS_DEBUG(2,
"parse_geohash called.");
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]);
72 POSTGIS_DEBUG(2,
"parse_geohash finished.");
GBOX * gbox_new(uint8_t flags)
Create a new gbox with the dimensionality indicated by the flags.
void decode_geohash_bbox(char *geohash, double *lat, double *lon, int precision)
static void geohash_lwpgerror(char *msg, int error_code)
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.