PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwline_setPoint4d()

void lwline_setPoint4d ( LWLINE line,
uint32_t  index,
POINT4D newpoint 

Definition at line 351 of file lwline.c.

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

Referenced by _lwt_AddLineEdge(), and LWGEOM_setpoint_linestring().

352 {
353  ptarray_set_point4d(line->points, index, newpoint);
354  /* Update the box, if there is one to update */
355  if ( line->bbox )
356  {
357  lwgeom_drop_bbox((LWGEOM*)line);
358  lwgeom_add_bbox((LWGEOM*)line);
359  }
360 }
void ptarray_set_point4d(POINTARRAY *pa, int n, const POINT4D *p4d)
Definition: lwgeom_api.c:536
GBOX * bbox
Definition: liblwgeom.h:404
void lwgeom_drop_bbox(LWGEOM *lwgeom)
Call this function to drop BBOX and SRID from LWGEOM.
Definition: lwgeom.c:586
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:599
Definition: liblwgeom.h:406
Here is the call graph for this function:
Here is the caller graph for this function: