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

◆ lwline_construct_empty()

LWLINE * lwline_construct_empty ( int32_t  srid,
char  hasz,
char  hasm 
)
extern

Definition at line 55 of file lwline.c.

56{
57 LWLINE *result = lwalloc(sizeof(LWLINE));
58 result->type = LINETYPE;
59 result->flags = lwflags(hasz,hasm,0);
60 result->srid = srid;
61 result->points = ptarray_construct_empty(hasz, hasm, 1);
62 result->bbox = NULL;
63 return result;
64}
#define LINETYPE
Definition liblwgeom.h:117
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
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
Definition lwutil.c:471
lwflags_t flags
Definition liblwgeom.h:471
GBOX * bbox
Definition liblwgeom.h:468
POINTARRAY * points
Definition liblwgeom.h:469
uint8_t type
Definition liblwgeom.h:472
int32_t srid
Definition liblwgeom.h:470

References LWLINE::bbox, LWLINE::flags, LINETYPE, lwalloc(), lwflags(), 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(), test_lwline_interpolate_point_3d(), and wkt_parser_linestring_new().

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