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