PostGIS  2.1.10dev-r@@SVN_REVISION@@
void lwline_setPoint4d ( LWLINE line,
uint32_t  index,
POINT4D newpoint 

Definition at line 350 of file lwline.c.

References LWLINE::bbox, lwgeom_add_bbox(), lwgeom_drop_bbox(), LWLINE::points, and ptarray_set_point4d().

Referenced by LWGEOM_setpoint_linestring().

351 {
352  ptarray_set_point4d(line->points, index, newpoint);
353  /* Update the box, if there is one to update */
354  if ( line->bbox )
355  {
356  lwgeom_drop_bbox((LWGEOM*)line);
357  lwgeom_add_bbox((LWGEOM*)line);
358  }
359 }
void ptarray_set_point4d(POINTARRAY *pa, int n, const POINT4D *p4d)
Definition: lwgeom_api.c:501
GBOX * bbox
Definition: liblwgeom.h:376
void lwgeom_drop_bbox(LWGEOM *lwgeom)
Call this function to drop BBOX and SRID from LWGEOM.
Definition: lwgeom.c:542
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:555
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: