PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWLINE* lwline_removepoint ( LWLINE line,
uint32_t  which 
)

Definition at line 356 of file lwline.c.

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

Referenced by LWGEOM_removepoint().

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

Here is the call graph for this function:

Here is the caller graph for this function: