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

◆ lwcircstring_construct_empty()

LWCIRCSTRING * lwcircstring_construct_empty ( int32_t  srid,
char  hasz,
char  hasm 
)
extern

Definition at line 79 of file lwcircstring.c.

80{
81 LWCIRCSTRING *result = lwalloc(sizeof(LWCIRCSTRING));
82 result->type = CIRCSTRINGTYPE;
83 result->flags = lwflags(hasz,hasm,0);
84 result->srid = srid;
85 result->points = ptarray_construct_empty(hasz, hasm, 1);
86 result->bbox = NULL;
87 return result;
88}
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition ptarray.c:59
void * lwalloc(size_t size)
Definition lwutil.c:227
#define CIRCSTRINGTYPE
Definition liblwgeom.h:123
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
Definition lwutil.c:471
uint8_t type
Definition liblwgeom.h:496
int32_t srid
Definition liblwgeom.h:494
lwflags_t flags
Definition liblwgeom.h:495
POINTARRAY * points
Definition liblwgeom.h:493
GBOX * bbox
Definition liblwgeom.h:492

References LWCIRCSTRING::bbox, CIRCSTRINGTYPE, LWCIRCSTRING::flags, lwalloc(), lwflags(), LWCIRCSTRING::points, ptarray_construct_empty(), LWCIRCSTRING::srid, and LWCIRCSTRING::type.

Referenced by lwcircstring_from_wkb_state(), lwgeom_construct_empty(), and wkt_parser_circularstring_new().

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