PostGIS  2.2.7dev-r@@SVN_REVISION@@
LWPOINT* lwpoint_make3dz ( int  srid,
double  x,
double  y,
double  z 

Definition at line 142 of file lwpoint.c.

References LW_TRUE, lwpoint_construct(), ptarray_append_point(), ptarray_construct_empty(), pixval::x, and pixval::y.

Referenced by create_v_line(), lw_dist3d_distanceline(), lw_dist3d_distancepoint(), and LWGEOM_makepoint().

143 {
144  POINT4D p = {x, y, z, 0.0};
145  POINTARRAY *pa = ptarray_construct_empty(1, 0, 1);
147  ptarray_append_point(pa, &p, LW_TRUE);
149  return lwpoint_construct(srid, NULL, pa);
150 }
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition: ptarray.c:70
int ptarray_append_point(POINTARRAY *pa, const POINT4D *pt, int allow_duplicates)
Append a point to the end of an existing POINTARRAY If allow_duplicate is LW_TRUE, then a duplicate point will not be added.
Definition: ptarray.c:156
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:98
tuple x
tuple y

Here is the call graph for this function:

Here is the caller graph for this function: