PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwline_setPoint4d()

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

Definition at line 364 of file lwline.c.

365 {
366  ptarray_set_point4d(line->points, index, newpoint);
367  /* Update the box, if there is one to update */
368  if ( line->bbox )
369  {
370  lwgeom_refresh_bbox((LWGEOM*)line);
371  }
372 }
void lwgeom_refresh_bbox(LWGEOM *lwgeom)
Drop current bbox and calculate a fresh one.
Definition: lwgeom.c:689
void ptarray_set_point4d(POINTARRAY *pa, uint32_t n, const POINT4D *p4d)
Definition: lwgeom_api.c:376
GBOX * bbox
Definition: liblwgeom.h:468
POINTARRAY * points
Definition: liblwgeom.h:469

References LWLINE::bbox, lwgeom_refresh_bbox(), LWLINE::points, and ptarray_set_point4d().

Referenced by _lwt_AddLineEdge(), and LWGEOM_setpoint_linestring().

Here is the call graph for this function:
Here is the caller graph for this function: