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

◆ lwtriangle_construct_empty()

LWTRIANGLE * lwtriangle_construct_empty ( int32_t  srid,
char  hasz,
char  hasm 
)
extern

Definition at line 58 of file lwtriangle.c.

59{
61 result->type = TRIANGLETYPE;
62 result->flags = lwflags(hasz,hasm,0);
63 result->srid = srid;
64 result->points = ptarray_construct_empty(hasz, hasm, 1);
65 result->bbox = NULL;
66 return result;
67}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
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 TRIANGLETYPE
Definition liblwgeom.h:115
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
Definition lwutil.c:477

References lwalloc(), lwflags(), ptarray_construct_empty(), result, and TRIANGLETYPE.

Referenced by lwgeom_construct_empty(), lwtriangle_from_wkb_state(), parse_gml_triangle(), SFCGAL2LWGEOM(), and wkt_parser_triangle_new().

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