PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWCIRCSTRING* lwcircstring_construct_empty ( int  srid,
char  hasz,
char  hasm 

Definition at line 67 of file lwcircstring.c.

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

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

68 {
70  result->type = CIRCSTRINGTYPE;
71  result->flags = gflags(hasz,hasm,0);
72  result->srid = srid;
73  result->points = ptarray_construct_empty(hasz, hasm, 1);
74  result->bbox = NULL;
75  return result;
76 }
uint8_t flags
Definition: liblwgeom.h:397
int32_t srid
Definition: liblwgeom.h:399
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition: ptarray.c:57
char ** result
Definition: liblwgeom.h:218
uint8_t type
Definition: liblwgeom.h:396
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.
Definition: g_util.c:131
GBOX * bbox
Definition: liblwgeom.h:398
Definition: liblwgeom.h:400
Definition: liblwgeom.h:67
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function:

Here is the caller graph for this function: