PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ test_geohash_point()

static void test_geohash_point ( void  )
static

Definition at line 957 of file cu_algorithm.c.

958{
959 lwvarlena_t *geohash;
960
961 geohash = geohash_point(0, 0, 16);
962 //printf("\ngeohash %s\n",geohash);
963 ASSERT_VARLENA_EQUAL(geohash, "s000000000000000");
964 lwfree(geohash);
965
966 geohash = geohash_point(90, 0, 16);
967 //printf("\ngeohash %s\n",geohash);
968 ASSERT_VARLENA_EQUAL(geohash, "w000000000000000");
969 lwfree(geohash);
970
971 geohash = geohash_point(20.012345, -20.012345, 15);
972 //printf("\ngeohash %s\n",geohash);
973 ASSERT_VARLENA_EQUAL(geohash, "kkqnpkue9ktbpe5");
974 lwfree(geohash);
975
976}
#define ASSERT_VARLENA_EQUAL(v, s)
void lwfree(void *mem)
Definition lwutil.c:248
lwvarlena_t * geohash_point(double longitude, double latitude, int precision)

References ASSERT_VARLENA_EQUAL, geohash_point(), and lwfree().

Referenced by algorithms_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: