PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ test_geohash_point()

static void test_geohash_point ( void  )
static

Definition at line 952 of file cu_algorithm.c.

953 {
954  char *geohash;
955 
956  geohash = geohash_point(0, 0, 16);
957  //printf("\ngeohash %s\n",geohash);
958  ASSERT_STRING_EQUAL(geohash, "s000000000000000");
959  lwfree(geohash);
960 
961  geohash = geohash_point(90, 0, 16);
962  //printf("\ngeohash %s\n",geohash);
963  ASSERT_STRING_EQUAL(geohash, "w000000000000000");
964  lwfree(geohash);
965 
966  geohash = geohash_point(20.012345, -20.012345, 15);
967  //printf("\ngeohash %s\n",geohash);
968  ASSERT_STRING_EQUAL(geohash, "kkqnpkue9ktbpe5");
969  lwfree(geohash);
970 
971 }
#define ASSERT_STRING_EQUAL(o, e)
void lwfree(void *mem)
Definition: lwutil.c:242
char * geohash_point(double longitude, double latitude, int precision)
Definition: lwalgorithm.c:597

References ASSERT_STRING_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: