PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWLINE* lwline_removepoint ( LWLINE line,
uint32_t  index 
)

Definition at line 333 of file lwline.c.

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

Referenced by LWGEOM_removepoint().

334 {
335  POINTARRAY *newpa;
336  LWLINE *ret;
337 
338  newpa = ptarray_removePoint(line->points, index);
339 
340  ret = lwline_construct(line->srid, NULL, newpa);
341  lwgeom_add_bbox((LWGEOM *) ret);
342 
343  return ret;
344 }
int32_t srid
Definition: liblwgeom.h:377
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:555
POINTARRAY * ptarray_removePoint(POINTARRAY *pa, uint32_t where)
Remove a point from a pointarray.
Definition: ptarray.c:540
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:29
POINTARRAY * points
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: