PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwline_setPoint4d()

void lwline_setPoint4d ( LWLINE line,
uint32_t  index,
POINT4D newpoint 
)

Definition at line 380 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().

381 {
382  ptarray_set_point4d(line->points, index, newpoint);
383  /* Update the box, if there is one to update */
384  if ( line->bbox )
385  {
386  lwgeom_drop_bbox((LWGEOM*)line);
387  lwgeom_add_bbox((LWGEOM*)line);
388  }
389 }
void ptarray_set_point4d(POINTARRAY *pa, int n, const POINT4D *p4d)
Definition: lwgeom_api.c:549
GBOX * bbox
Definition: liblwgeom.h:419
void lwgeom_drop_bbox(LWGEOM *lwgeom)
Call this function to drop BBOX and SRID from LWGEOM.
Definition: lwgeom.c:599
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:612
POINTARRAY * points
Definition: liblwgeom.h:421
Here is the call graph for this function:
Here is the caller graph for this function: