765 char *geohash = NULL;
770 CU_ASSERT_STRING_EQUAL(geohash,
"ss2r77s0du7p2ewb8hmx");
777 CU_ASSERT_STRING_EQUAL(geohash,
"ss2r77s0du7p2ewb8hmx");
784 CU_ASSERT_STRING_EQUAL(geohash,
"ss0");
791 CU_ASSERT_STRING_EQUAL(geohash,
"ss06g7h");
798 CU_ASSERT_STRING_EQUAL(geohash,
"ss0");
void lwmline_free(LWMLINE *mline)
void lwpoint_free(LWPOINT *pt)
void lwline_free(LWLINE *line)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
char * lwgeom_geohash(const LWGEOM *lwgeom, int precision)
Calculate the GeoHash (http://geohash.org) string for a geometry.