PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
char* lwgeom_geohash | ( | const LWGEOM * | lwgeom, |
int | precision | ||
) |
Calculate the GeoHash (http://geohash.org) string for a geometry.
Caller must free.
Definition at line 846 of file lwalgorithm.c.
References gbox_init(), geohash_point(), LW_FAILURE, lwerror(), lwgeom_calculate_gbox_cartesian(), lwgeom_geohash_precision(), GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.
Referenced by ST_GeoHash(), and test_geohash().