PostGIS
2.5.7dev-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 856 of file lwalgorithm.c.
References gbox_init(), geohash_point(), LW_FAILURE, lwerror(), lwgeom_calculate_gbox_cartesian(), lwgeom_geohash_precision(), precision, GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.
Referenced by ST_GeoHash(), and test_geohash().