PostGIS  3.0.6dev-r@@SVN_REVISION@@
lwspheroid.c File Reference
#include "liblwgeom_internal.h"
#include "lwgeodetic.h"
#include "lwgeom_log.h"
#include <geodesic.h>
Include dependency graph for lwspheroid.c:

Go to the source code of this file.

Functions

void spheroid_init (SPHEROID *s, double a, double b)
 Initialize spheroid object based on major and minor axis. More...
 
double spheroid_distance (const GEOGRAPHIC_POINT *a, const GEOGRAPHIC_POINT *b, const SPHEROID *spheroid)
 Computes the shortest distance along the surface of the spheroid between two points, using the inverse geodesic problem from GeographicLib (Karney 2013). More...
 
double spheroid_direction (const GEOGRAPHIC_POINT *a, const GEOGRAPHIC_POINT *b, const SPHEROID *spheroid)
 Computes the forward azimuth of the geodesic joining two points on the spheroid, using the inverse geodesic problem (Karney 2013). More...
 
int spheroid_project (const GEOGRAPHIC_POINT *r, const SPHEROID *spheroid, double distance, double azimuth, GEOGRAPHIC_POINT *g)
 Given a location, an azimuth and a distance, computes the location of the projected point. More...
 
static double ptarray_area_spheroid (const POINTARRAY *pa, const SPHEROID *spheroid)
 
double lwgeom_area_spheroid (const LWGEOM *lwgeom, const SPHEROID *spheroid)
 Calculate the area of an LWGEOM. More...