PostGIS  2.4.9dev-r@@SVN_REVISION@@
lwgeom_spheroid.c File Reference
#include "postgres.h"
#include <math.h>
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include "access/gist.h"
#include "access/itup.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
Include dependency graph for lwgeom_spheroid.c:

Go to the source code of this file.

Macros

#define SHOW_DIGS_DOUBLE   15
 
#define MAX_DIGS_DOUBLE   (SHOW_DIGS_DOUBLE + 6 + 1 + 3 +1)
 

Functions

Datum ellipsoid_in (PG_FUNCTION_ARGS)
 
Datum ellipsoid_out (PG_FUNCTION_ARGS)
 
Datum LWGEOM_length2d_ellipsoid (PG_FUNCTION_ARGS)
 
Datum LWGEOM_length_ellipsoid_linestring (PG_FUNCTION_ARGS)
 
Datum LWGEOM_distance_ellipsoid (PG_FUNCTION_ARGS)
 
Datum LWGEOM_distance_sphere (PG_FUNCTION_ARGS)
 
Datum geometry_distance_spheroid (PG_FUNCTION_ARGS)
 
double distance_sphere_method (double lat1, double long1, double lat2, double long2, SPHEROID *sphere)
 
double distance_ellipse_calculation (double lat1, double long1, double lat2, double long2, SPHEROID *sphere)
 
double distance_ellipse (double lat1, double long1, double lat2, double long2, SPHEROID *sphere)
 
double deltaLongitude (double azimuth, double sigma, double tsm, SPHEROID *sphere)
 
double mu2 (double azimuth, SPHEROID *sphere)
 
double bigA (double u2)
 
double bigB (double u2)
 
 PG_FUNCTION_INFO_V1 (ellipsoid_in)
 
 PG_FUNCTION_INFO_V1 (ellipsoid_out)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_length2d_ellipsoid)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_length_ellipsoid_linestring)
 
 PG_FUNCTION_INFO_V1 (geometry_distance_spheroid)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_distance_ellipsoid)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_distance_sphere)