PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwpoint_make3dz()

LWPOINT * lwpoint_make3dz ( int32_t  srid,
double  x,
double  y,
double  z 
)
extern

Definition at line 173 of file lwpoint.c.

174{
175 POINT4D p = {x, y, z, 0.0};
176 POINTARRAY *pa = ptarray_construct_empty(1, 0, 1);
177
179
180 return lwpoint_construct(srid, NULL, pa);
181}
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition ptarray.c:59
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_FALSE,...
Definition ptarray.c:147
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
LWPOINT * lwpoint_construct(int32_t srid, GBOX *bbox, POINTARRAY *point)
Definition lwpoint.c:129

References LW_TRUE, lwpoint_construct(), ptarray_append_point(), and ptarray_construct_empty().

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

Here is the call graph for this function:
Here is the caller graph for this function: