PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | M_PI 3.14159265358979323846 |
Functions | |
static double | degtorad (double degrees) |
static double | geo_distance_internal (Point *pt1, Point *pt2) |
PG_FUNCTION_INFO_V1 (geo_distance) | |
Datum | geo_distance (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
static const double | EARTH_RADIUS = 3958.747716 |
static const double | TWO_PI = 2.0 * M_PI |
#define M_PI 3.14159265358979323846 |
Definition at line 11 of file earthdistance.c.
|
static |
Definition at line 31 of file earthdistance.c.
References degrees(), and TWO_PI.
Referenced by geo_distance_internal().
Datum geo_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 97 of file earthdistance.c.
References geo_distance_internal(), PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Definition at line 50 of file earthdistance.c.
References degtorad(), EARTH_RADIUS, M_PI, TWO_PI, Point::x, and Point::y.
Referenced by geo_distance().
PG_FUNCTION_INFO_V1 | ( | geo_distance | ) |
|
static |
Definition at line 17 of file earthdistance.c.
Referenced by geo_distance_internal().
PG_MODULE_MAGIC |
Definition at line 14 of file earthdistance.c.
|
static |
Definition at line 18 of file earthdistance.c.
Referenced by degtorad(), and geo_distance_internal().