PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcircstring_construct_empty()

LWCIRCSTRING* lwcircstring_construct_empty ( int  srid,
char  hasz,
char  hasm 
)

Definition at line 80 of file lwcircstring.c.

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

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

81 {
82  LWCIRCSTRING *result = lwalloc(sizeof(LWCIRCSTRING));
83  result->type = CIRCSTRINGTYPE;
84  result->flags = gflags(hasz,hasm,0);
85  result->srid = srid;
86  result->points = ptarray_construct_empty(hasz, hasm, 1);
87  result->bbox = NULL;
88  return result;
89 }
uint8_t flags
Definition: liblwgeom.h:441
int32_t srid
Definition: liblwgeom.h:443
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition: ptarray.c:70
uint8_t type
Definition: liblwgeom.h:440
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.
Definition: g_util.c:145
GBOX * bbox
Definition: liblwgeom.h:442
POINTARRAY * points
Definition: liblwgeom.h:444
#define CIRCSTRINGTYPE
Definition: liblwgeom.h:92
void * lwalloc(size_t size)
Definition: lwutil.c:229
Here is the call graph for this function:
Here is the caller graph for this function: