PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <math.h>
#include <limits.h>
#include <float.h>
#include <ctype.h>
#include "libpq/pqformat.h"
#include "miscadmin.h"
#include "nodes/miscnodes.h"
#include "utils/fmgrprotos.h"
#include "utils/geo_decls.h"
#include "varatt.h"
Go to the source code of this file.
Macros | |
#define | LDELIM '(' |
#define | RDELIM ')' |
#define | DELIM ',' |
#define | LDELIM_EP '[' |
#define | RDELIM_EP ']' |
#define | LDELIM_C '<' |
#define | RDELIM_C '>' |
#define | LDELIM_L '{' |
#define | RDELIM_L '}' |
#define | POINT_ON_POLYGON INT_MAX |
Enumerations | |
enum | path_delim { PATH_NONE , PATH_OPEN , PATH_CLOSED } |
enum path_delim |
Datum box_above | ( | PG_FUNCTION_ARGS | ) |
Definition at line 658 of file geo_ops.c.
References FPgt(), BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::y.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_above_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 731 of file geo_ops.c.
References FPge(), BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::y.
Datum box_add | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4231 of file geo_ops.c.
References BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, PG_RETURN_BOX_P, and point_add_point().
Datum box_area | ( | PG_FUNCTION_ARGS | ) |
Definition at line 796 of file geo_ops.c.
References box_ar(), PG_GETARG_BOX_P, and PG_RETURN_FLOAT8.
Datum box_below | ( | PG_FUNCTION_ARGS | ) |
Definition at line 635 of file geo_ops.c.
References FPlt(), BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::y.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_below_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 722 of file geo_ops.c.
References FPle(), BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::y.
Datum box_center | ( | PG_FUNCTION_ARGS | ) |
Definition at line 849 of file geo_ops.c.
References box_cn(), palloc(), PG_GETARG_BOX_P, and PG_RETURN_POINT_P.
Datum box_circle | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5208 of file geo_ops.c.
References CIRCLE::center, float8_div(), float8_pl(), BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_RETURN_CIRCLE_P, point_dt(), CIRCLE::radius, Point::x, and Point::y.
Definition at line 3013 of file geo_ops.c.
References box_interpt_lseg(), float8_lt(), BOX::high, BOX::low, lseg_closept_lseg(), statlseg_construct(), Point::x, and Point::y.
Referenced by close_sb(), dist_bs(), and dist_sb().
Definition at line 2878 of file geo_ops.c.
References box_contain_point(), float8_lt(), BOX::high, BOX::low, lseg_closept_point(), statlseg_construct(), Point::x, and Point::y.
Referenced by close_pb(), dist_bp(), and dist_pb().
Definition at line 872 of file geo_ops.c.
References float8_div(), float8_pl(), BOX::high, BOX::low, Point::x, and Point::y.
Referenced by box_center(), box_distance(), and box_interpt_lseg().
Definition at line 518 of file geo_ops.c.
References float8_gt(), BOX::high, BOX::low, Point::x, and Point::y.
Referenced by box_div(), box_mul(), box_poly(), and points_box().
Datum box_contain | ( | PG_FUNCTION_ARGS | ) |
Definition at line 692 of file geo_ops.c.
References box_contain_box(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Definition at line 704 of file geo_ops.c.
References FPge(), FPle(), BOX::high, BOX::low, Point::x, and Point::y.
Referenced by box_contain(), box_contained(), and poly_contain_poly().
Definition at line 3217 of file geo_ops.c.
References box_contain_point(), and LSEG::p.
Referenced by on_sb().
Definition at line 3130 of file geo_ops.c.
References BOX::high, BOX::low, Point::x, and Point::y.
Referenced by box_closept_point(), box_contain_lseg(), box_contain_pt(), box_interpt_lseg(), and on_pb().
Datum box_contain_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3146 of file geo_ops.c.
References box_contain_point(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, and PG_RETURN_BOOL.
Referenced by spg_quad_inner_consistent(), and spg_quad_leaf_consistent().
Datum box_contained | ( | PG_FUNCTION_ARGS | ) |
Definition at line 681 of file geo_ops.c.
References box_contain_box(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Referenced by gist_box_leaf_consistent(), and spg_box_quad_leaf_consistent().
Datum box_diagonal | ( | PG_FUNCTION_ARGS | ) |
Definition at line 933 of file geo_ops.c.
References BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_RETURN_LSEG_P, and statlseg_construct().
Datum box_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 832 of file geo_ops.c.
References a, b, box_cn(), PG_GETARG_BOX_P, PG_RETURN_FLOAT8, and point_dt().
Datum box_div | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4280 of file geo_ops.c.
References box_construct(), BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, PG_RETURN_BOX_P, and point_div_point().
Datum box_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 762 of file geo_ops.c.
References box_ar(), FPeq(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Datum box_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 780 of file geo_ops.c.
References box_ar(), FPge(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Datum box_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 753 of file geo_ops.c.
References box_ar(), FPgt(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Datum box_height | ( | PG_FUNCTION_ARGS | ) |
Definition at line 820 of file geo_ops.c.
References box_ht(), PG_GETARG_BOX_P, and PG_RETURN_FLOAT8.
Definition at line 893 of file geo_ops.c.
References float8_mi(), BOX::high, BOX::low, and Point::y.
Referenced by box_ar(), and box_height().
Datum box_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 422 of file geo_ops.c.
References float8_lt(), BOX::high, BOX::low, palloc(), path_decode(), PG_GETARG_CSTRING, PG_RETURN_BOX_P, PG_RETURN_NULL, str, x, Point::x, y, and Point::y.
Definition at line 3263 of file geo_ops.c.
References box_cn(), box_contain_point(), box_ov(), float8_max(), float8_min(), BOX::high, BOX::low, lseg_closept_point(), lseg_interpt_lseg(), LSEG::p, statlseg_construct(), Point::x, and Point::y.
Referenced by box_closept_lseg(), and inter_sb().
Datum box_intersect | ( | PG_FUNCTION_ARGS | ) |
Definition at line 908 of file geo_ops.c.
References box_ov(), float8_max(), float8_min(), BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_RETURN_BOX_P, PG_RETURN_NULL, Point::x, and Point::y.
Datum box_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 771 of file geo_ops.c.
References box_ar(), FPle(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Datum box_left | ( | PG_FUNCTION_ARGS | ) |
Definition at line 583 of file geo_ops.c.
References FPlt(), BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::x.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 744 of file geo_ops.c.
References box_ar(), FPlt(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Datum box_mul | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4261 of file geo_ops.c.
References box_construct(), BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, PG_RETURN_BOX_P, and point_mul_point().
Datum box_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 455 of file geo_ops.c.
References BOX::high, path_encode(), PATH_NONE, PG_GETARG_BOX_P, and PG_RETURN_CSTRING.
Definition at line 572 of file geo_ops.c.
References FPle(), BOX::high, BOX::low, Point::x, and Point::y.
Referenced by box_interpt_lseg(), box_intersect(), box_overlap(), path_inter(), and poly_overlap_internal().
Datum box_overabove | ( | PG_FUNCTION_ARGS | ) |
Definition at line 670 of file geo_ops.c.
References FPge(), BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::y.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_overbelow | ( | PG_FUNCTION_ARGS | ) |
Definition at line 647 of file geo_ops.c.
References FPle(), BOX::high, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::y.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_overlap | ( | PG_FUNCTION_ARGS | ) |
Definition at line 563 of file geo_ops.c.
References box_ov(), PG_GETARG_BOX_P, and PG_RETURN_BOOL.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_overleft | ( | PG_FUNCTION_ARGS | ) |
Definition at line 598 of file geo_ops.c.
References FPle(), BOX::high, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::x.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_overright | ( | PG_FUNCTION_ARGS | ) |
Definition at line 624 of file geo_ops.c.
References FPge(), BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::x.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_poly | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4535 of file geo_ops.c.
References POLYGON::boundbox, box_construct(), BOX::high, BOX::low, POLYGON::npts, POLYGON::p, palloc(), PG_GETARG_BOX_P, PG_RETURN_POLYGON_P, SET_VARSIZE, size, Point::x, and Point::y.
Datum box_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 466 of file geo_ops.c.
References buf, float8_lt(), BOX::high, BOX::low, palloc(), PG_GETARG_POINTER, PG_RETURN_BOX_P, pq_getmsgfloat8(), x, Point::x, y, and Point::y.
Datum box_right | ( | PG_FUNCTION_ARGS | ) |
Definition at line 609 of file geo_ops.c.
References FPgt(), BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and Point::x.
Referenced by gist_box_leaf_consistent(), rtree_internal_consistent(), and spg_box_quad_leaf_consistent().
Datum box_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 551 of file geo_ops.c.
References BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BOOL, and point_eq_point().
Referenced by gist_box_leaf_consistent(), and spg_box_quad_leaf_consistent().
Datum box_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 501 of file geo_ops.c.
References buf, BOX::high, BOX::low, PG_GETARG_BOX_P, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), pq_sendfloat8(), Point::x, and Point::y.
Datum box_sub | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4246 of file geo_ops.c.
References BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, PG_RETURN_BOX_P, and point_sub_point().
Datum box_width | ( | PG_FUNCTION_ARGS | ) |
Definition at line 808 of file geo_ops.c.
References box_wd(), PG_GETARG_BOX_P, and PG_RETURN_FLOAT8.
Datum boxes_bound_box | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4321 of file geo_ops.c.
References float8_max(), float8_min(), BOX::high, BOX::low, palloc(), PG_GETARG_BOX_P, PG_RETURN_BOX_P, Point::x, and Point::y.
Datum circle_above | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4863 of file geo_ops.c.
References CIRCLE::center, float8_mi(), float8_pl(), FPgt(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::y.
Datum circle_add_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4965 of file geo_ops.c.
References CIRCLE::center, palloc(), PG_GETARG_CIRCLE_P, PG_GETARG_POINT_P, PG_RETURN_CIRCLE_P, point_add_point(), and CIRCLE::radius.
Definition at line 5159 of file geo_ops.c.
References float8_mul(), M_PI, and CIRCLE::radius.
Referenced by circle_area(), circle_eq(), circle_ge(), circle_gt(), circle_le(), circle_lt(), and circle_ne().
Datum circle_area | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5032 of file geo_ops.c.
References circle_ar(), PG_GETARG_CIRCLE_P, and PG_RETURN_FLOAT8.
Datum circle_below | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4851 of file geo_ops.c.
References CIRCLE::center, float8_mi(), float8_pl(), FPlt(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::y.
Datum circle_box | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5186 of file geo_ops.c.
References CIRCLE::center, float8_div(), float8_mi(), float8_pl(), BOX::high, BOX::low, palloc(), PG_GETARG_CIRCLE_P, PG_RETURN_BOX_P, CIRCLE::radius, Point::x, and Point::y.
Datum circle_center | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5143 of file geo_ops.c.
References CIRCLE::center, palloc(), PG_GETARG_CIRCLE_P, PG_RETURN_POINT_P, Point::x, and Point::y.
Datum circle_contain | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4838 of file geo_ops.c.
References CIRCLE::center, float8_mi(), FPle(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, point_dt(), and CIRCLE::radius.
Datum circle_contain_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5082 of file geo_ops.c.
References CIRCLE::center, PG_GETARG_CIRCLE_P, PG_GETARG_POINT_P, PG_RETURN_BOOL, and point_dt().
Referenced by gist_point_consistent().
Datum circle_contained | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4826 of file geo_ops.c.
References CIRCLE::center, float8_mi(), FPle(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, point_dt(), and CIRCLE::radius.
Datum circle_diameter | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5043 of file geo_ops.c.
References float8_mul(), PG_GETARG_CIRCLE_P, PG_RETURN_FLOAT8, and CIRCLE::radius.
Datum circle_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5066 of file geo_ops.c.
References CIRCLE::center, float8_mi(), float8_pl(), PG_GETARG_CIRCLE_P, PG_RETURN_FLOAT8, point_dt(), and CIRCLE::radius.
Datum circle_div_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5014 of file geo_ops.c.
References CIRCLE::center, float8_div(), HYPOT, palloc(), PG_GETARG_CIRCLE_P, PG_GETARG_POINT_P, PG_RETURN_CIRCLE_P, point_div_point(), CIRCLE::radius, Point::x, and Point::y.
Datum circle_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4903 of file geo_ops.c.
References circle_ar(), FPeq(), PG_GETARG_CIRCLE_P, and PG_RETURN_BOOL.
Datum circle_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4948 of file geo_ops.c.
References circle_ar(), FPge(), PG_GETARG_CIRCLE_P, and PG_RETURN_BOOL.
Datum circle_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4930 of file geo_ops.c.
References circle_ar(), FPgt(), PG_GETARG_CIRCLE_P, and PG_RETURN_BOOL.
Datum circle_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4611 of file geo_ops.c.
References CIRCLE::center, DELIM, ereturn, errcode(), errmsg(), LDELIM, LDELIM_C, pair_decode(), palloc(), PG_GETARG_CSTRING, PG_RETURN_CIRCLE_P, PG_RETURN_NULL, CIRCLE::radius, RDELIM, RDELIM_C, single_decode(), str, Point::x, and Point::y.
Datum circle_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4939 of file geo_ops.c.
References circle_ar(), FPle(), PG_GETARG_CIRCLE_P, and PG_RETURN_BOOL.
Datum circle_left | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4789 of file geo_ops.c.
References CIRCLE::center, float8_mi(), float8_pl(), FPlt(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::x.
Datum circle_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4921 of file geo_ops.c.
References circle_ar(), FPlt(), PG_GETARG_CIRCLE_P, and PG_RETURN_BOOL.
Datum circle_mul_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4999 of file geo_ops.c.
References CIRCLE::center, float8_mul(), HYPOT, palloc(), PG_GETARG_CIRCLE_P, PG_GETARG_POINT_P, PG_RETURN_CIRCLE_P, point_mul_point(), CIRCLE::radius, Point::x, and Point::y.
Datum circle_ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4912 of file geo_ops.c.
References circle_ar(), FPne(), PG_GETARG_CIRCLE_P, and PG_RETURN_BOOL.
Datum circle_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4681 of file geo_ops.c.
References appendStringInfoChar(), CIRCLE::center, DELIM, initStringInfo(), LDELIM, LDELIM_C, pair_encode(), PG_GETARG_CIRCLE_P, PG_RETURN_CSTRING, CIRCLE::radius, RDELIM, RDELIM_C, single_encode(), str, Point::x, and Point::y.
Datum circle_overabove | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4889 of file geo_ops.c.
References CIRCLE::center, float8_mi(), FPge(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::y.
Datum circle_overbelow | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4876 of file geo_ops.c.
References CIRCLE::center, float8_pl(), FPle(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::y.
Datum circle_overlap | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4764 of file geo_ops.c.
References CIRCLE::center, float8_pl(), FPle(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, point_dt(), and CIRCLE::radius.
Datum circle_overleft | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4777 of file geo_ops.c.
References CIRCLE::center, float8_pl(), FPle(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::x.
Datum circle_overright | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4814 of file geo_ops.c.
References CIRCLE::center, float8_mi(), FPge(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::x.
Datum circle_poly | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5225 of file geo_ops.c.
References CIRCLE::center, ereport, errcode(), errmsg(), ERROR, float8_div(), float8_mi(), float8_mul(), float8_pl(), FPzero, i, M_PI, make_bound_box(), POLYGON::npts, POLYGON::p, palloc0(), PG_GETARG_CIRCLE_P, PG_GETARG_INT32, PG_RETURN_POLYGON_P, CIRCLE::radius, SET_VARSIZE, size, Point::x, and Point::y.
Datum circle_radius | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5054 of file geo_ops.c.
References PG_GETARG_CIRCLE_P, PG_RETURN_FLOAT8, and CIRCLE::radius.
Datum circle_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4703 of file geo_ops.c.
References buf, CIRCLE::center, ereport, errcode(), errmsg(), ERROR, palloc(), PG_GETARG_POINTER, PG_RETURN_CIRCLE_P, pq_getmsgfloat8(), CIRCLE::radius, Point::x, and Point::y.
Datum circle_right | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4801 of file geo_ops.c.
References CIRCLE::center, float8_mi(), float8_pl(), FPgt(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, CIRCLE::radius, and Point::x.
Datum circle_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4751 of file geo_ops.c.
References CIRCLE::center, FPeq(), PG_GETARG_CIRCLE_P, PG_RETURN_BOOL, point_eq_point(), and CIRCLE::radius.
Datum circle_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4727 of file geo_ops.c.
References buf, CIRCLE::center, PG_GETARG_CIRCLE_P, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), pq_sendfloat8(), CIRCLE::radius, Point::x, and Point::y.
Datum circle_sub_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4980 of file geo_ops.c.
References CIRCLE::center, palloc(), PG_GETARG_CIRCLE_P, PG_GETARG_POINT_P, PG_RETURN_CIRCLE_P, point_sub_point(), and CIRCLE::radius.
Datum close_ls | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2988 of file geo_ops.c.
References line_sl(), lseg_closept_line(), lseg_sl(), palloc(), PG_GETARG_LINE_P, PG_GETARG_LSEG_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Datum close_lseg | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2853 of file geo_ops.c.
References lseg_closept_lseg(), lseg_sl(), palloc(), PG_GETARG_LSEG_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Datum close_pb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2933 of file geo_ops.c.
References box_closept_point(), palloc(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Datum close_pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2750 of file geo_ops.c.
References line_closept_point(), palloc(), PG_GETARG_LINE_P, PG_GETARG_POINT_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Datum close_ps | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2791 of file geo_ops.c.
References lseg_closept_point(), palloc(), PG_GETARG_LSEG_P, PG_GETARG_POINT_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Datum close_sb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3063 of file geo_ops.c.
References box_closept_lseg(), palloc(), PG_GETARG_BOX_P, PG_GETARG_LSEG_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Datum construct_point | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4096 of file geo_ops.c.
References palloc(), PG_GETARG_FLOAT8, PG_RETURN_POINT_P, point_construct(), x, and y.
Datum cr_circle | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5170 of file geo_ops.c.
References CIRCLE::center, palloc(), PG_GETARG_FLOAT8, PG_GETARG_POINT_P, PG_RETURN_CIRCLE_P, CIRCLE::radius, Point::x, and Point::y.
Datum dist_bp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2514 of file geo_ops.c.
References box_closept_point(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Datum dist_bs | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2562 of file geo_ops.c.
References box_closept_lseg(), PG_GETARG_BOX_P, PG_GETARG_LSEG_P, and PG_RETURN_FLOAT8.
Datum dist_cpoint | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5127 of file geo_ops.c.
References CIRCLE::center, float8_mi(), PG_GETARG_CIRCLE_P, PG_GETARG_POINT_P, PG_RETURN_FLOAT8, point_dt(), and CIRCLE::radius.
Datum dist_cpoly | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2588 of file geo_ops.c.
References dist_cpoly_internal(), PG_GETARG_CIRCLE_P, PG_GETARG_POLYGON_P, and PG_RETURN_FLOAT8.
Definition at line 2571 of file geo_ops.c.
References CIRCLE::center, dist_ppoly_internal(), float8_mi(), and CIRCLE::radius.
Referenced by dist_cpoly(), and dist_polyc().
Datum dist_lp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2402 of file geo_ops.c.
References line_closept_point(), PG_GETARG_LINE_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Datum dist_ls | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2538 of file geo_ops.c.
References lseg_closept_line(), PG_GETARG_LINE_P, PG_GETARG_LSEG_P, and PG_RETURN_FLOAT8.
Datum dist_pathp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2490 of file geo_ops.c.
References dist_ppath_internal(), PG_GETARG_PATH_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Datum dist_pb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2502 of file geo_ops.c.
References box_closept_point(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Datum dist_pc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 5109 of file geo_ops.c.
References CIRCLE::center, float8_mi(), PG_GETARG_CIRCLE_P, PG_GETARG_POINT_P, PG_RETURN_FLOAT8, point_dt(), and CIRCLE::radius.
Datum dist_pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2390 of file geo_ops.c.
References line_closept_point(), PG_GETARG_LINE_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Datum dist_polyc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2600 of file geo_ops.c.
References dist_cpoly_internal(), PG_GETARG_CIRCLE_P, PG_GETARG_POLYGON_P, and PG_RETURN_FLOAT8.
Datum dist_polyp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2621 of file geo_ops.c.
References dist_ppoly_internal(), PG_GETARG_POINT_P, PG_GETARG_POLYGON_P, and PG_RETURN_FLOAT8.
Datum dist_ppath | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2478 of file geo_ops.c.
References dist_ppath_internal(), PG_GETARG_PATH_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Definition at line 2435 of file geo_ops.c.
References Assert, PATH::closed, float8_lt(), i, lseg_closept_point(), PATH::npts, PATH::p, and statlseg_construct().
Referenced by dist_pathp(), and dist_ppath().
Datum dist_ppoly | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2612 of file geo_ops.c.
References dist_ppoly_internal(), PG_GETARG_POINT_P, PG_GETARG_POLYGON_P, and PG_RETURN_FLOAT8.
Definition at line 2630 of file geo_ops.c.
References float8_lt(), i, lseg_closept_point(), POLYGON::npts, LSEG::p, POLYGON::p, point_inside(), Point::x, and Point::y.
Referenced by dist_cpoly_internal(), dist_polyp(), and dist_ppoly().
Datum dist_ps | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2414 of file geo_ops.c.
References lseg_closept_point(), PG_GETARG_LSEG_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Datum dist_sb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2550 of file geo_ops.c.
References box_closept_lseg(), PG_GETARG_BOX_P, PG_GETARG_LSEG_P, and PG_RETURN_FLOAT8.
Datum dist_sl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2526 of file geo_ops.c.
References lseg_closept_line(), PG_GETARG_LINE_P, PG_GETARG_LSEG_P, and PG_RETURN_FLOAT8.
Datum dist_sp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2426 of file geo_ops.c.
References lseg_closept_point(), PG_GETARG_LSEG_P, PG_GETARG_POINT_P, and PG_RETURN_FLOAT8.
Datum inter_lb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3328 of file geo_ops.c.
References BOX::high, BOX::low, lseg_interpt_line(), p2, PG_GETARG_BOX_P, PG_GETARG_LINE_P, PG_RETURN_BOOL, statlseg_construct(), Point::x, and Point::y.
Datum inter_sb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3315 of file geo_ops.c.
References box_interpt_lseg(), PG_GETARG_BOX_P, PG_GETARG_LSEG_P, and PG_RETURN_BOOL.
Datum inter_sl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3238 of file geo_ops.c.
References lseg_interpt_line(), PG_GETARG_LINE_P, PG_GETARG_LSEG_P, and PG_RETURN_BOOL.
Definition at line 2724 of file geo_ops.c.
References get_float8_nan(), line_construct(), line_interpt_line(), line_invsl(), and point_dt().
Referenced by close_pl(), dist_lp(), dist_pl(), and lseg_closept_line().
Definition at line 1083 of file geo_ops.c.
References LINE::A, LINE::B, LINE::C, float8_mi(), float8_mul(), Point::x, and Point::y.
Referenced by line_closept_point(), line_construct_pp(), line_in(), lseg_closept_point(), lseg_interpt_line(), and lseg_interpt_lseg().
Datum line_construct_pp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1115 of file geo_ops.c.
References ereport, errcode(), errmsg(), ERROR, line_construct(), palloc(), PG_GETARG_POINT_P, PG_RETURN_LINE_P, point_eq_point(), and point_sl().
Definition at line 3087 of file geo_ops.c.
References LINE::A, LINE::B, LINE::C, float8_mul(), float8_pl(), FPzero, Point::x, and Point::y.
Datum line_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1261 of file geo_ops.c.
References LINE::A, LINE::B, LINE::C, float8_div(), float8_mi(), float8_mul(), FPzero, HYPOT, line_interpt_line(), PG_GETARG_LINE_P, and PG_RETURN_FLOAT8.
Datum line_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1194 of file geo_ops.c.
References LINE::A, LINE::B, LINE::C, float8_div(), float8_eq(), float8_mul(), FPeq(), FPzero, PG_GETARG_LINE_P, PG_RETURN_BOOL, and unlikely.
Datum line_horizontal | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1182 of file geo_ops.c.
References LINE::A, FPzero, PG_GETARG_LINE_P, and PG_RETURN_BOOL.
Datum line_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 979 of file geo_ops.c.
References LINE::A, LINE::B, ereturn, errcode(), errmsg(), FPzero, LDELIM_L, line_construct(), line_decode(), lseg_sl(), LSEG::p, palloc(), path_decode(), PG_GETARG_CSTRING, PG_RETURN_LINE_P, PG_RETURN_NULL, point_eq_point(), and str.
Datum line_interpt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1286 of file geo_ops.c.
References line_interpt_line(), palloc(), PG_GETARG_LINE_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Definition at line 1314 of file geo_ops.c.
References LINE::A, LINE::B, LINE::C, float8_div(), float8_mi(), float8_mul(), float8_pl(), FPeq(), FPzero, point_construct(), x, and y.
Referenced by line_closept_point(), line_distance(), line_interpt(), line_intersect(), line_parallel(), and lseg_interpt_line().
Datum line_intersect | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1137 of file geo_ops.c.
References line_interpt_line(), PG_GETARG_LINE_P, and PG_RETURN_BOOL.
Definition at line 1247 of file geo_ops.c.
References LINE::A, LINE::B, float8_div(), FPzero, and get_float8_infinity().
Referenced by line_closept_point().
Datum line_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1023 of file geo_ops.c.
References LINE::A, LINE::B, LINE::C, DELIM, float8out_internal(), LDELIM_L, PG_GETARG_LINE_P, PG_RETURN_CSTRING, psprintf(), and RDELIM_L.
Datum line_parallel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1146 of file geo_ops.c.
References line_interpt_line(), PG_GETARG_LINE_P, and PG_RETURN_BOOL.
Datum line_perp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1155 of file geo_ops.c.
References LINE::A, LINE::B, float8_div(), float8_mul(), FPeq(), FPzero, PG_GETARG_LINE_P, and PG_RETURN_BOOL.
Datum line_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1038 of file geo_ops.c.
References LINE::A, LINE::B, buf, LINE::C, ereport, errcode(), errmsg(), ERROR, FPzero, palloc(), PG_GETARG_POINTER, PG_RETURN_LINE_P, and pq_getmsgfloat8().
Datum line_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1061 of file geo_ops.c.
References LINE::A, LINE::B, buf, LINE::C, PG_GETARG_LINE_P, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendfloat8().
Definition at line 1233 of file geo_ops.c.
References LINE::A, LINE::B, float8_div(), FPzero, and get_float8_infinity().
Referenced by close_ls().
Datum line_vertical | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1174 of file geo_ops.c.
References LINE::B, FPzero, PG_GETARG_LINE_P, and PG_RETURN_BOOL.
Datum lseg_center | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2316 of file geo_ops.c.
References float8_div(), float8_pl(), LSEG::p, palloc(), PG_GETARG_LSEG_P, PG_RETURN_POINT_P, Point::x, and Point::y.
Definition at line 2960 of file geo_ops.c.
References line_closept_point(), lseg_interpt_line(), and LSEG::p.
Referenced by close_ls(), dist_ls(), dist_sl(), and lseg_closept_point().
Definition at line 2810 of file geo_ops.c.
References float8_lt(), lseg_closept_point(), lseg_interpt_lseg(), and LSEG::p.
Referenced by box_closept_lseg(), close_lseg(), lseg_distance(), path_distance(), and poly_distance().
Definition at line 2772 of file geo_ops.c.
References line_construct(), lseg_closept_line(), LSEG::p, point_dt(), and point_invsl().
Referenced by box_closept_point(), box_interpt_lseg(), close_ps(), dist_ppath_internal(), dist_ppoly_internal(), dist_ps(), dist_sp(), and lseg_closept_lseg().
Datum lseg_construct | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2129 of file geo_ops.c.
References palloc(), PG_GETARG_POINT_P, PG_RETURN_LSEG_P, and statlseg_construct().
Definition at line 3109 of file geo_ops.c.
References FPeq(), LSEG::p, and point_dt().
Referenced by lseg_inside_poly(), lseg_interpt_line(), lseg_interpt_lseg(), on_ps(), and touched_lseg_inside_poly().
Definition at line 5397 of file geo_ops.c.
References float8_mi(), float8_mul(), FPge(), FPgt(), FPle(), FPlt(), FPzero, POINT_ON_POLYGON, x, and y.
Referenced by point_inside().
Datum lseg_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2306 of file geo_ops.c.
References lseg_closept_lseg(), PG_GETARG_LSEG_P, and PG_RETURN_FLOAT8.
Datum lseg_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2236 of file geo_ops.c.
References LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and point_eq_point().
Datum lseg_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2286 of file geo_ops.c.
References FPge(), LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and point_dt().
Datum lseg_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2276 of file geo_ops.c.
References FPgt(), LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and point_dt().
Datum lseg_horizontal | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2227 of file geo_ops.c.
References FPeq(), LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and Point::y.
Datum lseg_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2065 of file geo_ops.c.
References LSEG::p, palloc(), path_decode(), PG_GETARG_CSTRING, PG_RETURN_LSEG_P, PG_RETURN_NULL, and str.
Definition at line 3866 of file geo_ops.c.
References a, b, CHECK_FOR_INTERRUPTS, check_stack_depth(), float8_div(), float8_pl(), i, lseg_contain_point(), lseg_interpt_lseg(), POLYGON::npts, LSEG::p, POLYGON::p, point_inside(), res, start, touched_lseg_inside_poly(), Point::x, and Point::y.
Referenced by poly_contain_poly(), and touched_lseg_inside_poly().
Datum lseg_interpt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2361 of file geo_ops.c.
References lseg_interpt_lseg(), palloc(), PG_GETARG_LSEG_P, PG_RETURN_NULL, and PG_RETURN_POINT_P.
Referenced by interpt_pp().
Definition at line 2675 of file geo_ops.c.
References line_construct(), line_interpt_line(), lseg_contain_point(), lseg_sl(), LSEG::p, and point_eq_point().
Referenced by inter_lb(), inter_sl(), lseg_closept_line(), and lseg_interpt_lseg().
Definition at line 2338 of file geo_ops.c.
References line_construct(), lseg_contain_point(), lseg_interpt_line(), lseg_sl(), and LSEG::p.
Referenced by box_interpt_lseg(), lseg_closept_lseg(), lseg_inside_poly(), lseg_interpt(), lseg_intersect(), path_inter(), and poly_overlap_internal().
Datum lseg_intersect | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2188 of file geo_ops.c.
References lseg_interpt_lseg(), PG_GETARG_LSEG_P, and PG_RETURN_BOOL.
Referenced by interpt_pp().
Definition at line 2165 of file geo_ops.c.
References LSEG::p, and point_invsl().
Referenced by lseg_perp().
Datum lseg_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2266 of file geo_ops.c.
References FPle(), LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and point_dt().
Datum lseg_length | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2172 of file geo_ops.c.
References LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_FLOAT8, and point_dt().
Datum lseg_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2256 of file geo_ops.c.
References FPlt(), LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and point_dt().
Datum lseg_ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2246 of file geo_ops.c.
References LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and point_eq_point().
Datum lseg_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2081 of file geo_ops.c.
References LSEG::p, path_encode(), PATH_OPEN, PG_GETARG_LSEG_P, and PG_RETURN_CSTRING.
Datum lseg_parallel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2198 of file geo_ops.c.
References FPeq(), lseg_sl(), PG_GETARG_LSEG_P, and PG_RETURN_BOOL.
Datum lseg_perp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2210 of file geo_ops.c.
References FPeq(), lseg_invsl(), lseg_sl(), PG_GETARG_LSEG_P, and PG_RETURN_BOOL.
Datum lseg_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2092 of file geo_ops.c.
References buf, LSEG::p, palloc(), PG_GETARG_POINTER, PG_RETURN_LSEG_P, pq_getmsgfloat8(), Point::x, and Point::y.
Datum lseg_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2111 of file geo_ops.c.
References buf, LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), pq_sendfloat8(), Point::x, and Point::y.
Definition at line 2155 of file geo_ops.c.
References LSEG::p, and point_sl().
Referenced by close_ls(), close_lseg(), line_in(), lseg_interpt_line(), lseg_interpt_lseg(), lseg_parallel(), and lseg_perp().
Datum lseg_vertical | ( | PG_FUNCTION_ARGS | ) |
Definition at line 2219 of file geo_ops.c.
References FPeq(), LSEG::p, PG_GETARG_LSEG_P, PG_RETURN_BOOL, and Point::x.
|
static |
Definition at line 3376 of file geo_ops.c.
References Assert, POLYGON::boundbox, float8_gt(), float8_lt(), BOX::high, i, BOX::low, POLYGON::npts, POLYGON::p, Point::x, and Point::y.
Referenced by circle_poly(), path_poly(), poly_in(), and poly_recv().
Datum on_pb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3137 of file geo_ops.c.
References box_contain_point(), PG_GETARG_BOX_P, PG_GETARG_POINT_P, and PG_RETURN_BOOL.
Datum on_pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3095 of file geo_ops.c.
References line_contain_point(), PG_GETARG_LINE_P, PG_GETARG_POINT_P, and PG_RETURN_BOOL.
Datum on_ppath | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3166 of file geo_ops.c.
References a, b, PATH::closed, float8_pl(), FPeq(), i, PATH::npts, PATH::p, PG_GETARG_PATH_P, PG_GETARG_POINT_P, PG_RETURN_BOOL, point_dt(), and point_inside().
Datum on_ps | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3117 of file geo_ops.c.
References lseg_contain_point(), PG_GETARG_LSEG_P, PG_GETARG_POINT_P, and PG_RETURN_BOOL.
Datum on_sb | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3224 of file geo_ops.c.
References box_contain_lseg(), PG_GETARG_BOX_P, PG_GETARG_LSEG_P, and PG_RETURN_BOOL.
Datum on_sl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 3201 of file geo_ops.c.
References line_contain_point(), LSEG::p, PG_GETARG_LINE_P, PG_GETARG_LSEG_P, and PG_RETURN_BOOL.
|
static |
|
static |
Definition at line 212 of file geo_ops.c.
References DELIM, ereturn, errcode(), errmsg(), LDELIM, RDELIM, single_decode(), str, x, and y.
Referenced by circle_in(), path_decode(), and point_in().
|
static |
Definition at line 255 of file geo_ops.c.
References appendStringInfo(), float8out_internal(), pfree(), str, x, and y.
Referenced by circle_out(), and path_encode().
Datum path_add | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4348 of file geo_ops.c.
References PATH::closed, PATH::dummy, ereport, errcode(), errmsg(), ERROR, i, PATH::npts, PATH::p, p2, palloc(), PG_GETARG_PATH_P, PG_RETURN_NULL, PG_RETURN_PATH_P, SET_VARSIZE, size, Point::x, and Point::y.
Datum path_add_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4396 of file geo_ops.c.
References i, PATH::npts, PATH::p, PG_GETARG_PATH_P_COPY, PG_GETARG_POINT_P, PG_RETURN_PATH_P, and point_add_point().
Datum path_area | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1380 of file geo_ops.c.
References PATH::closed, float8_div(), float8_mi(), float8_mul(), float8_pl(), i, j, PATH::npts, PATH::p, PG_GETARG_PATH_P, PG_RETURN_FLOAT8, PG_RETURN_NULL, Point::x, and Point::y.
Datum path_close | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1627 of file geo_ops.c.
References PATH::closed, PG_GETARG_PATH_P_COPY, and PG_RETURN_PATH_P.
|
static |
Datum path_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1730 of file geo_ops.c.
References PATH::closed, float8_lt(), i, j, lseg_closept_lseg(), PATH::npts, PATH::p, p2, PG_GETARG_PATH_P, PG_RETURN_FLOAT8, PG_RETURN_NULL, and statlseg_construct().
Datum path_div_pt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 4438 of file geo_ops.c.
References i, PATH::npts, PATH::p, PG_GETARG_PATH_P_COPY, PG_GETARG_POINT_P, PG_RETURN_PATH_P, and point_div_point().
|
static |
Referenced by box_out(), lseg_out(), path_out(), point_out(), and poly_out().
|
static |
Definition at line 340 of file geo_ops.c.
References appendStringInfoChar(), DELIM, i, initStringInfo(), LDELIM, LDELIM_EP, pair_encode(), PATH_CLOSED, PATH_NONE, PATH_OPEN, RDELIM, RDELIM_EP, str, Point::x, and Point::y.
Datum path_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1402 of file geo_ops.c.
References PATH::closed, PATH::dummy, ereturn, errcode(), errmsg(), LDELIM, PATH::npts, PATH::p, pair_count(), palloc(), path_decode(), PG_GETARG_CSTRING, PG_RETURN_NULL, PG_RETURN_PATH_P, RDELIM, SET_VARSIZE, size, and str.
Datum path_inter | ( | PG_FUNCTION_ARGS | ) |