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

◆ lwline_removepoint()

LWLINE * lwline_removepoint ( LWLINE line,
uint32_t  which 
)
extern

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:582
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition lwgeom.c:695
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: