MobilityDB 1.1
Functions
geography_functions.c File Reference
#include "point/geography_funcs.h"
#include <float.h>
#include <postgres.h>
#include <fmgr.h>
#include <utils/array.h>
#include <liblwgeom.h>
#include <liblwgeom_internal.h>
#include <lwgeom_pg.h>
#include <lwgeodetic_tree.h>
#include "point/tpoint_spatialfuncs.h"
Include dependency graph for geography_functions.c:

Functions

Datum geography_closestpoint (PG_FUNCTION_ARGS)
 Return the point in first input geography that is closest to the second input geography in 2d. More...
 
static POINTARRAYgeography_interpolate_points (const LWLINE *line, double length_fraction, const SPHEROID *s, char repeat)
 Interpolate a point along a geographic line. More...
 
Datum geography_line_interpolate_point (PG_FUNCTION_ARGS)
 Interpolate a point along a geographic line. More...
 
Datum geography_line_locate_point (PG_FUNCTION_ARGS)
 Locate a point along a geographic line. More...
 
Datum geography_line_substring (PG_FUNCTION_ARGS)
 Return the part of a line between two fractional locations. More...
 
Datum geography_shortestline (PG_FUNCTION_ARGS)
 Return the point in first input geography that is closest to the second input geography in 2d. More...
 
static POINTARRAYgeography_substring (POINTARRAY *ipa, double from, double to, double tolerance)
 Return the part of a line between two fractional locations. More...
 
static LWGEOMgeography_tree_closestpoint (const GSERIALIZED *g1, const GSERIALIZED *g2, double threshold)
 Spatial functions for PostGIS geography. More...
 
static double ptarray_length_sphere (const POINTARRAY *pa)
 Returns the lenght of the point array wrt the sphere. More...
 
static double ptarray_locate_point_spheroid (const POINTARRAY *pa, const POINT4D *p4d, const SPHEROID *s, double tolerance, double *mindistout, POINT4D *proj4d)
 Locate a point along the point array defining a geographic line. More...