PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_construct_empty()

LWLINE* lwline_construct_empty ( int  srid,
char  hasz,
char  hasm 
)

Definition at line 64 of file lwline.c.

65 {
66  LWLINE *result = lwalloc(sizeof(LWLINE));
67  result->type = LINETYPE;
68  result->flags = gflags(hasz,hasm,0);
69  result->srid = srid;
70  result->points = ptarray_construct_empty(hasz, hasm, 1);
71  result->bbox = NULL;
72  return result;
73 }
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.
Definition: g_util.c:145
#define LINETYPE
Definition: liblwgeom.h:86
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition: ptarray.c:70
void * lwalloc(size_t size)
Definition: lwutil.c:229
GBOX * bbox
Definition: liblwgeom.h:423
uint8_t flags
Definition: liblwgeom.h:422
POINTARRAY * points
Definition: liblwgeom.h:425
uint8_t type
Definition: liblwgeom.h:421
int32_t srid
Definition: liblwgeom.h:424

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

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

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