PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwline_removepoint()

LWLINE * lwline_removepoint ( LWLINE line,
uint32_t  index 
)

Definition at line 357 of file lwline.c.

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

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: