PostGIS  2.1.10dev-r@@SVN_REVISION@@
lwgeom_functions_analytic.c File Reference
#include "postgres.h"
#include "fmgr.h"
#include "liblwgeom.h"
#include "liblwgeom_internal.h"
#include "lwgeom_pg.h"
#include "math.h"
#include "lwgeom_rtree.h"
#include "lwgeom_functions_analytic.h"
Include dependency graph for lwgeom_functions_analytic.c:

Go to the source code of this file.

Data Structures

struct  gridspec_t
 

Macros

#define CHECK_RING_IS_CLOSE
 
#define SAMEPOINT(a, b)   ((a)->x==(b)->x&&(a)->y==(b)->y)
 

Typedefs

typedef struct gridspec_t gridspec
 

Functions

Datum LWGEOM_simplify2d (PG_FUNCTION_ARGS)
 
Datum ST_LineCrossingDirection (PG_FUNCTION_ARGS)
 
double determineSide (POINT2D *seg1, POINT2D *seg2, POINT2D *point)
 
int isOnSegment (POINT2D *seg1, POINT2D *seg2, POINT2D *point)
 
int point_in_ring (POINTARRAY *pts, POINT2D *point)
 
int point_in_ring_rtree (RTREE_NODE *root, POINT2D *point)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_simplify2d)
 
Datum LWGEOM_line_interpolate_point (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_line_interpolate_point)
 
LWGEOMlwgeom_grid (LWGEOM *lwgeom, gridspec *grid)
 
LWCOLLECTIONlwcollection_grid (LWCOLLECTION *coll, gridspec *grid)
 
LWPOINTlwpoint_grid (LWPOINT *point, gridspec *grid)
 
LWPOLYlwpoly_grid (LWPOLY *poly, gridspec *grid)
 
LWLINElwline_grid (LWLINE *line, gridspec *grid)
 
LWCIRCSTRINGlwcirc_grid (LWCIRCSTRING *line, gridspec *grid)
 
POINTARRAYptarray_grid (POINTARRAY *pa, gridspec *grid)
 
Datum LWGEOM_snaptogrid (PG_FUNCTION_ARGS)
 
Datum LWGEOM_snaptogrid_pointoff (PG_FUNCTION_ARGS)
 
static int grid_isNull (const gridspec *grid)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_snaptogrid)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_snaptogrid_pointoff)
 
 PG_FUNCTION_INFO_V1 (ST_LineCrossingDirection)
 
Datum LWGEOM_line_substring (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_line_substring)
 
int point_in_polygon_rtree (RTREE_NODE **root, int ringCount, LWPOINT *point)
 
int point_in_multipolygon_rtree (RTREE_NODE **root, int polyCount, int *ringCounts, LWPOINT *point)
 
int point_in_polygon (LWPOLY *polygon, LWPOINT *point)
 
int point_in_multipolygon (LWMPOLY *mpolygon, LWPOINT *point)