|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | M_PI 3.14159265358979323846 |
Functions | |
| PG_MODULE_MAGIC_EXT (.name="earthdistance",.version=PG_VERSION) | |
| 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 | |
| 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 34 of file earthdistance.c.
References degrees(), and TWO_PI.
Referenced by geo_distance_internal().
| Datum geo_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 100 of file earthdistance.c.
References geo_distance_internal(), PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Definition at line 53 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 | ) |
| PG_MODULE_MAGIC_EXT | ( | . | name = "earthdistance", |
| . | version = PG_VERSION |
||
| ) |
|
static |
Definition at line 20 of file earthdistance.c.
Referenced by geo_distance_internal().
|
static |
Definition at line 21 of file earthdistance.c.
Referenced by degtorad(), and geo_distance_internal().