PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_setPoint4d()

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

Definition at line 373 of file lwline.c.

374 {
375  ptarray_set_point4d(line->points, index, newpoint);
376  /* Update the box, if there is one to update */
377  if ( line->bbox )
378  {
379  lwgeom_refresh_bbox((LWGEOM*)line);
380  }
381 }
void lwgeom_refresh_bbox(LWGEOM *lwgeom)
Drop current bbox and calculate a fresh one.
Definition: lwgeom.c:698
void ptarray_set_point4d(POINTARRAY *pa, uint32_t n, const POINT4D *p4d)
Definition: lwgeom_api.c:435
GBOX * bbox
Definition: liblwgeom.h:423
POINTARRAY * points
Definition: liblwgeom.h:425

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: