PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWLINE* lwline_construct_empty ( int  srid,
char  hasz,
char  hasm 

Definition at line 51 of file lwline.c.

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

Referenced by GEOS2LWGEOM(), lwgeom_construct_empty(), LWGEOM_exteriorring_polygon(), lwline_force_dims(), lwline_from_lwgeom_array(), lwline_from_lwmpoint(), lwline_from_ptarray(), lwline_from_wkb_state(), parse_gml_line(), SFCGAL2LWGEOM(), and wkt_parser_linestring_new().

52 {
53  LWLINE *result = lwalloc(sizeof(LWLINE));
54  result->type = LINETYPE;
55  result->flags = gflags(hasz,hasm,0);
56  result->srid = srid;
57  result->points = ptarray_construct_empty(hasz, hasm, 1);
58  result->bbox = NULL;
59  return result;
60 }
#define LINETYPE
Definition: liblwgeom.h:61
uint8_t type
Definition: liblwgeom.h:374
GBOX * bbox
Definition: liblwgeom.h:376
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition: ptarray.c:57
int32_t srid
Definition: liblwgeom.h:377
char ** result
Definition: liblwgeom.h:218
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.
Definition: g_util.c:131
void * lwalloc(size_t size)
Definition: lwutil.c:175
uint8_t flags
Definition: liblwgeom.h:375
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: