PostGIS  2.4.9dev-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:437
GBOX * bbox
Definition: liblwgeom.h:420
void lwgeom_drop_bbox(LWGEOM *lwgeom)
Call this function to drop BBOX and SRID from LWGEOM.
Definition: lwgeom.c:635
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:648
POINTARRAY * points
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: