PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_removepoint()

LWLINE* lwline_removepoint ( LWLINE line,
uint32_t  which 

Definition at line 356 of file lwline.c.

357 {
358  POINTARRAY *newpa;
359  LWLINE *ret;
361  newpa = ptarray_removePoint(line->points, index);
363  ret = lwline_construct(line->srid, NULL, newpa);
364  lwgeom_add_bbox((LWGEOM *) ret);
366  return ret;
367 }
POINTARRAY * ptarray_removePoint(POINTARRAY *pa, uint32_t where)
Remove a point from a pointarray.
Definition: ptarray.c:555
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:686
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:42
Definition: liblwgeom.h:425
int32_t srid
Definition: liblwgeom.h:424

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

Referenced by LWGEOM_removepoint().

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