#include <gcutter.h>
#include <glib/gstdio.h>
#include "../lib/grn-assertions.h"
#include <str.h>
#include <geo.h>
Go to the source code of this file.
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 |
#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 ## _wgs84); \
grn_obj_unlink(
context, name ## _text)
Function Documentation
void cut_shutdown |
( |
void |
| ) |
|
void cut_startup |
( |
void |
| ) |
|
void cut_teardown |
( |
void |
| ) |
|
void data_distance_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 test_distance_ellipsoid |
( |
void |
| ) |
|
void test_distance_rectangle |
( |
gconstpointer |
data | ) |
|
void test_distance_sphere |
( |
void |
| ) |
|
void test_estimate_in_rectangle |
( |
void |
| ) |
|
void test_in_circle |
( |
void |
| ) |
|
void test_in_rectangle |
( |
void |
| ) |
|