PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwline_removepoint()

LWLINE* lwline_removepoint ( LWLINE line,
uint32_t  index 

Definition at line 334 of file lwline.c.

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

Referenced by LWGEOM_removepoint().

335 {
336  POINTARRAY *newpa;
337  LWLINE *ret;
339  newpa = ptarray_removePoint(line->points, index);
341  ret = lwline_construct(line->srid, NULL, newpa);
342  lwgeom_add_bbox((LWGEOM *) ret);
344  return ret;
345 }
int32_t srid
Definition: liblwgeom.h:405
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:599
POINTARRAY * ptarray_removePoint(POINTARRAY *pa, uint32_t where)
Remove a point from a pointarray.
Definition: ptarray.c:562
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:29
Definition: liblwgeom.h:406
Here is the call graph for this function:
Here is the caller graph for this function: