PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwline_removepoint()

LWLINE* lwline_removepoint ( LWLINE line,
uint32_t  which 
)

Definition at line 347 of file lwline.c.

348 {
349  POINTARRAY *newpa;
350  LWLINE *ret;
351 
352  newpa = ptarray_removePoint(line->points, index);
353 
354  ret = lwline_construct(line->srid, NULL, newpa);
355  lwgeom_add_bbox((LWGEOM *) ret);
356 
357  return ret;
358 }
POINTARRAY * ptarray_removePoint(POINTARRAY *pa, uint32_t where)
Remove a point from a pointarray.
Definition: ptarray.c:553
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:677
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:42
POINTARRAY * points
Definition: liblwgeom.h:469
int32_t srid
Definition: liblwgeom.h:470

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: