Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
test-geo.c File Reference
#include <gcutter.h>
#include <glib/gstdio.h>
#include "../lib/grn-assertions.h"
#include <str.h>
#include <geo.h>
Include dependency graph for test-geo.c:

Go to the source code of this file.

Macros

#define get(name)   grn_ctx_get(context, name, strlen(name))
#define DEFINE_GEO_POINT(name)   static grn_obj *name ## _tokyo, *name ## _wgs84, *name ## _text
#define SETUP_GEO_POINT(name, latitude, longitude)
#define UNLINK_GEO_POINT(name)
#define ADD_DATUM(label, shinjuku, takane)

Functions

void test_in_circle (void)
void test_in_rectangle (void)
void data_distance_rectangle (void)
void test_distance_rectangle (gconstpointer data)
void test_distance_sphere (void)
void test_distance_ellipsoid (void)
void test_estimate_in_rectangle (void)
 DEFINE_GEO_POINT (nezu_no_taiyaki)
 DEFINE_GEO_POINT (takane)
 DEFINE_GEO_POINT (sazare)
 DEFINE_GEO_POINT (yanagi_ya)
 DEFINE_GEO_POINT (hiiragi)
 DEFINE_GEO_POINT (tokyo)
 DEFINE_GEO_POINT (shinjuku)
void cut_startup (void)
void cut_shutdown (void)
void cut_setup (void)
void cut_teardown (void)

Macro Definition Documentation

#define ADD_DATUM (   label,
  shinjuku,
  takane 
)
Value:
gcut_add_datum(label, \
"shinjuku-geographic-coordinate-system", \
G_TYPE_INT, shinjuku, \
"takane-geographic-coordinate-system", \
G_TYPE_INT, takane, \
NULL)
#define DEFINE_GEO_POINT (   name)    static grn_obj *name ## _tokyo, *name ## _wgs84, *name ## _text

Definition at line 42 of file test-geo.c.

#define get (   name)    grn_ctx_get(context, name, strlen(name))

Definition at line 27 of file test-geo.c.

#define SETUP_GEO_POINT (   name,
  latitude,
  longitude 
)
Value:
name ## _tokyo = tokyo_geo_point_open(latitude, longitude); \
name ## _wgs84 = wgs84_geo_point_open(latitude, longitude); \
name ## _text = text_geo_point_open(latitude, longitude)
#define UNLINK_GEO_POINT (   name)
Value:
grn_obj_unlink(context, name ## _tokyo); \
grn_obj_unlink(context, name ## _wgs84); \
grn_obj_unlink(context, name ## _text)

Function Documentation

void cut_setup ( void  )

Definition at line 128 of file test-geo.c.

Here is the call graph for this function:

void cut_shutdown ( void  )

Definition at line 64 of file test-geo.c.

void cut_startup ( void  )

Definition at line 56 of file test-geo.c.

Here is the call graph for this function:

void cut_teardown ( void  )

Definition at line 171 of file test-geo.c.

Here is the call graph for this function:

void data_distance_rectangle ( void  )

Definition at line 239 of file test-geo.c.

DEFINE_GEO_POINT ( nezu_no_taiyaki  )
DEFINE_GEO_POINT ( takane  )
DEFINE_GEO_POINT ( sazare  )
DEFINE_GEO_POINT ( yanagi_ya  )
DEFINE_GEO_POINT ( hiiragi  )
DEFINE_GEO_POINT ( tokyo  )
DEFINE_GEO_POINT ( shinjuku  )
void test_distance_ellipsoid ( void  )

Definition at line 293 of file test-geo.c.

Here is the call graph for this function:

void test_distance_rectangle ( gconstpointer  data)

Definition at line 276 of file test-geo.c.

Here is the call graph for this function:

void test_distance_sphere ( void  )

Definition at line 284 of file test-geo.c.

Here is the call graph for this function:

void test_estimate_in_rectangle ( void  )

Definition at line 302 of file test-geo.c.

Here is the call graph for this function:

void test_in_circle ( void  )

Definition at line 183 of file test-geo.c.

Here is the call graph for this function:

void test_in_rectangle ( void  )

Definition at line 198 of file test-geo.c.

Here is the call graph for this function: