Add a LWPOINT to an LWLINE.
Definition at line 342 of file lwline.c.
References LWLINE::bbox, getPoint4d_p(), LW_FAILURE, LW_SUCCESS, lwgeom_add_bbox(), lwgeom_drop_bbox(), lwline_as_lwgeom(), LWPOINT::point, LWLINE::points, and ptarray_insert_point().
Referenced by LWGEOM_addpoint().
void lwgeom_drop_bbox(LWGEOM *lwgeom)
Call this function to drop BBOX and SRID from LWGEOM.
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
int ptarray_insert_point(POINTARRAY *pa, const POINT4D *p, int where)
Insert a point into an existing POINTARRAY.
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)