PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwpoint_make()

LWPOINT* lwpoint_make ( int  srid,
int  hasz,
int  hasm,
const POINT4D p 
)

Definition at line 206 of file lwpoint.c.

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

Referenced by LWGEOM_dumppoints(), lwmpoint_construct(), and lwmpoint_from_lwgeom().

207 {
208  POINTARRAY *pa = ptarray_construct_empty(hasz, hasm, 1);
210  return lwpoint_construct(srid, NULL, pa);
211 }
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_FALSE, 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:76
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:129
Here is the call graph for this function:
Here is the caller graph for this function: