PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwline_removepoint()

LWLINE* lwline_removepoint ( LWLINE line,
uint32_t  which 
)

Definition at line 363 of file lwline.c.

References lwgeom_add_bbox(), lwline_construct(), LWLINE::points, ptarray_removePoint(), and LWLINE::srid.

Referenced by LWGEOM_removepoint().

364 {
365  POINTARRAY *newpa;
366  LWLINE *ret;
367 
368  newpa = ptarray_removePoint(line->points, index);
369 
370  ret = lwline_construct(line->srid, NULL, newpa);
371  lwgeom_add_bbox((LWGEOM *) ret);
372 
373  return ret;
374 }
int32_t srid
Definition: liblwgeom.h:421
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:648
POINTARRAY * ptarray_removePoint(POINTARRAY *pa, uint32_t where)
Remove a point from a pointarray.
Definition: ptarray.c:557
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:42
POINTARRAY * points
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: